Defines | Functions | Variables
ujson.c File Reference
#include "py_defines.h"
#include "version.h"
Include dependency graph for ujson.c:

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 Documentation

#define MODINITERROR   return

Definition at line 83 of file ujson.c.

#define PYMODINITFUNC   PyMODINIT_FUNC initujson(void)

Definition at line 81 of file ujson.c.

#define PYMODULE_CREATE ( )    Py_InitModule("ujson", ujsonMethods)

Definition at line 82 of file ujson.c.


Function Documentation

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.


Variable Documentation

PyMethodDef ujsonMethods[] [static]
Initial value:
 {
    {"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}       
}

Definition at line 51 of file ujson.c.



rosbridge_library
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:35