summaryrefslogtreecommitdiff
path: root/jsonpath.c
diff options
context:
space:
mode:
authorJoey Adams2010-06-21 23:52:23 +0000
committerJoey Adams2010-06-21 23:52:23 +0000
commitb153d76442ba1ef1237c4cc36f491b3aff7b8510 (patch)
treed3d4f0cd8d6d2be370a98b0d13e80dafc6f60bb5 /jsonpath.c
parentf1851e0b1fd7f002b4033d9717ab9a704d402d48 (diff)
* Made it so json_path preserves original text.
* Removed the global variable json_escape_unicode and added a parameter for it to the json_encode and json_encode_string C functions.
Diffstat (limited to 'jsonpath.c')
-rw-r--r--jsonpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpath.c b/jsonpath.c
index d816beb..6c04bdb 100644
--- a/jsonpath.c
+++ b/jsonpath.c
@@ -113,7 +113,7 @@ char *jp_show(JSONPath *jp)
appendStringInfo(string, "%s[%ld]", rd ? ".." : "", elem->data.index);
break;
case JP_KEY_SUBSCRIPT:
- tmp = json_encode_string(elem->data.key.ptr, elem->data.key.length, '"');
+ tmp = json_encode_string(elem->data.key.ptr, elem->data.key.length, '"', false);
Assert(tmp != NULL);
appendStringInfo(string, "%s[%s]", rd ? ".." : "", tmp);
pfree(tmp);