Methods
encode_json
ΒΆ
encode_json(obj:
Any
)
Encode JSON (serialize a data structure to JSON)
Returns
Str
Example
encode_json({"a": 1+1}) # The string { "a": 2 }