MCPcopy Create free account
hub / github.com/btbytes/teh / encode_equivalent

Method encode_equivalent

lib/demjson.py:1858–1882  ·  view source on GitHub ↗

This method is used to encode user-defined class objects. The object being encoded should have a json_equivalent() method defined which returns another equivalent object which is easily JSON-encoded. If the object in question has no json_equivalent() method availabl

( self, obj, nest_level=0 )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

encode_helperMethod · 0.95

Calls 2

encodeMethod · 0.95
JSONEncodeErrorClass · 0.85

Tested by

no test coverage detected