
Go to the source code of this file.
Defines | |
| #define | MODINITERROR return |
| #define | PYMODINITFUNC PyMODINIT_FUNC initujson(void) |
| #define | PYMODULE_CREATE() Py_InitModule("ujson", ujsonMethods) |
Functions | |
| void | initObjToJSON (void) |
| PyObject * | JSONFileToObj (PyObject *self, PyObject *file) |
| PyObject * | JSONToObj (PyObject *self, PyObject *arg) |
| PyObject * | objToJSON (PyObject *self, PyObject *args, PyObject *kwargs) |
| PyObject * | objToJSONFile (PyObject *self, PyObject *args, PyObject *kwargs) |
Variables | |
| static PyMethodDef | ujsonMethods [] |
| #define MODINITERROR return |
| #define PYMODINITFUNC PyMODINIT_FUNC initujson(void) |
| #define PYMODULE_CREATE | ( | ) | Py_InitModule("ujson", ujsonMethods) |
| void initObjToJSON | ( | void | ) |
Definition at line 82 of file objToJSON.c.
| PyObject* JSONFileToObj | ( | PyObject * | self, |
| PyObject * | file | ||
| ) |
Definition at line 178 of file JSONtoObj.c.
| PyObject* JSONToObj | ( | PyObject * | self, |
| PyObject * | arg | ||
| ) |
Definition at line 107 of file JSONtoObj.c.
| PyObject* objToJSON | ( | PyObject * | self, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Definition at line 730 of file objToJSON.c.
| PyObject* objToJSONFile | ( | PyObject * | self, |
| PyObject * | args, | ||
| PyObject * | kwargs | ||
| ) |
Definition at line 811 of file objToJSON.c.
PyMethodDef ujsonMethods[] [static] |
{
{"encode", (PyCFunction) objToJSON, METH_VARARGS | METH_KEYWORDS, "Converts arbitrary object recursivly into JSON. Use ensure_ascii=false to output UTF-8. Pass in double_precision to alter the maximum digit precision with doubles"},
{"decode", (PyCFunction) JSONToObj, METH_O, "Converts JSON as string to dict object structure"},
{"dumps", (PyCFunction) objToJSON, METH_VARARGS | METH_KEYWORDS, "Converts arbitrary object recursivly into JSON. Use ensure_ascii=false to output UTF-8"},
{"loads", (PyCFunction) JSONToObj, METH_O, "Converts JSON as string to dict object structure"},
{"dump", (PyCFunction) objToJSONFile, METH_VARARGS | METH_KEYWORDS, "Converts arbitrary object recursively into JSON file. Use ensure_ascii=false to output UTF-8"},
{"load", (PyCFunction) JSONFileToObj, METH_O, "Converts JSON as file to dict object structure"},
{NULL, NULL, 0, NULL}
}