def encode(obj):
    if not _initialized:
        _initialize()
    return _encode(obj)
Encode the given object as a JSON string.
dataset/ETHPy150Open RDFLib/rdfextras/rdfextras/sparql/results/jsonlayer.py/encode