Add a json_type_to_name() function which returns a string that describes the type. Useful for logging.

git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@67 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
Eric Haszlakiewicz
2011-05-03 20:40:49 +00:00
parent e2e16011f0
commit 886c4fbebf
4 changed files with 33 additions and 16 deletions

View File

@@ -40,6 +40,7 @@ typedef struct json_tokener json_tokener;
/* supported object types */
typedef enum json_type {
/* If you change this, be sure to update json_type_to_name() too */
json_type_null,
json_type_boolean,
json_type_double,