pando_json.h 963 B

12345678910111213141516171819202122232425262728
  1. /*******************************************************
  2. * File name: pando_json.h
  3. * Author: ruizeng
  4. * Versions: 1.0
  5. * Description:This module has some json handle utils.
  6. * History:
  7. * 1.Date: initial code
  8. * Author: ruizeng
  9. * Modification:
  10. *********************************************************/
  11. #ifndef __PANDO_JSON_H
  12. #define __PANDO_JSON_H
  13. #include "json/jsontree.h"
  14. /******************************************************************************
  15. * FunctionName : pando_json_print
  16. * Description : print json value to a "char *" string.
  17. * Parameters : json_value: the json_value struct ptr.
  18. * dst: the string buffer to print to.
  19. * len: the length of the output buffer.
  20. * Returns : return the length printed, -1 if error
  21. *******************************************************************************/
  22. int pando_json_print(struct jsontree_value * json_value, char * dst, int len);
  23. #endif