diff options
author | Eric Haszlakiewicz <ehaszla@transunion.com> | 2011-05-03 20:40:49 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <ehaszla@transunion.com> | 2011-05-03 20:40:49 +0000 |
commit | 886c4fbebfd0d276235277059193e6aad18fe259 (patch) | |
tree | 3d3d51ed76ad933d99d4b980d83f6e24ac5f9eb1 /json_object.h | |
parent | e2e16011f0839a1861754105b2268588a11776c6 (diff) | |
download | json-c-886c4fbebfd0d276235277059193e6aad18fe259.tar.gz |
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
Diffstat (limited to 'json_object.h')
-rw-r--r-- | json_object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/json_object.h b/json_object.h index d8fdc29..29a408d 100644 --- a/json_object.h +++ b/json_object.h @@ -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, |