summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorJoey Adams2010-07-24 01:41:04 +0000
committerJoey Adams2010-07-24 01:41:04 +0000
commitb32257221b4b8e15fada7aabd0fe6e129e00d3e8 (patch)
treecffb5336f46610208fff4f4a43c6f179f1a5990d /json.h
parentbc9e250d090da889a3e1e1eb82b5dfc0a32bc52e (diff)
* Removed the string buffer code in json.c and used StringInfo instead.
* Removed json_cleanup and json_validate_liberal. json_cleanup was badly in need of a rewrite.
Diffstat (limited to 'json.h')
-rw-r--r--json.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/json.h b/json.h
index 27c8ab6..3391cea 100644
--- a/json.h
+++ b/json.h
@@ -125,7 +125,6 @@ struct json_node
bool json_validate(const char *str);
-bool json_validate_liberal(const char *str);
json_node *json_decode(const char *str);
#define JSONOPT_USE_ORIG 1
@@ -138,14 +137,6 @@ char *json_encode(json_node * node, int options);
* Might return JSON_INVALID if something is wrong with the input. */
json_type json_text_type(const char *str, size_t nbytes);
-/* Filter almost-JSON text to try to make it JSON. On failure,
- * returns NULL. On success, the text may or may not be valid JSON;
- * you still have to run it through json_validate or json_decode
- * to see.
- *
- * Free the result with free() when you're done with it. */
-char *json_cleanup(const char *str);
-
/*
* Free a JSON node and all its descendants.
*