File: jsonparser.pyx

package info (click to toggle)
libjsonparser 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,012 kB
  • sloc: ansic: 1,139; python: 68; makefile: 62; sh: 15
file content (9 lines) | stat: -rw-r--r-- 224 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
cdef extern from "wrap_json.c":
    object decode_json(char * value)
    object get_exception_class()

JSONException = get_exception_class()

def decode(value):
    value = value.encode('utf-8')
    return decode_json(value)