MCPcopy Create free account
hub / github.com/ccxt/ccxt / is_json_encoded_object

Method is_json_encoded_object

python/ccxt/base/exchange.py:1758–1762  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

1756
1757 @staticmethod
1758 def is_json_encoded_object(input):
1759 try:
1760 return (isinstance(input, str) and ((input[0] == '{') or (input[0] == '[')))
1761 except Exception:
1762 return False
1763
1764 @staticmethod
1765 def encode(string):

Callers 4

requestMethod · 0.80
requestMethod · 0.80
parse_jsonMethod · 0.80

Calls

no outgoing calls

Tested by 1