How to use the ijson.compat.b2s function in ijson

To help you get started, we’ve selected a few ijson examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github isagalaev / ijson / ijson / backends / yajl2.py View on Github external
    ('number', C_STR, lambda v, l: common.number(b2s(string_at(v, l)))),
    ('string', C_STR, lambda v, l: string_at(v, l).decode('utf-8')),
github isagalaev / ijson / ijson / backends / yajl.py View on Github external
    ('number', C_STR, lambda v, l: common.number(b2s(string_at(v, l)))),
    ('string', C_STR, lambda v, l: string_at(v, l).decode('utf-8')),
github isagalaev / ijson / ijson / backends / yajl2_cffi.py View on Github external
def number(val, length):
    return common.number(b2s(ffi.string(val, maxlen=length)))
github isagalaev / ijson / ijson / backends / yajl2.py View on Github external
    ('map_key', C_STR, lambda v, l: b2s(string_at(v, l))),
    ('end_map', C_EMPTY, lambda: None),
github isagalaev / ijson / ijson / backends / yajl.py View on Github external
    ('number', C_STR, lambda v, l: number(b2s(string_at(v, l)))),
    ('string', C_STR, lambda v, l: string_at(v, l).decode('utf-8')),
github isagalaev / ijson / ijson / backends / yajl2_cffi.py View on Github external
def map_key(key, length):
    return b2s(ffi.string(key, maxlen=length))
github isagalaev / ijson / ijson / backends / yajl.py View on Github external
    ('map_key', C_STR, lambda v, l: b2s(string_at(v, l))),
    ('end_map', C_EMPTY, lambda: None),
github isagalaev / ijson / ijson / backends / yajl.py View on Github external
    ('map_key', C_STR, lambda v, l: b2s(string_at(v, l))),
    ('end_map', C_EMPTY, lambda: None),