summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 1fe390c6..ea14eefa 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -2529,9 +2529,7 @@ getJSONPropVal(struct json_object *jroot, uchar *propName, int propNameLen, ucha
*pRes = NULL;
if(jroot == NULL) goto finalize_it;
- if(!strcmp((char*)propName, "!") ||
- !strcmp((char*)propName, ".") ||
- !strcmp((char*)propName, "/") ) {
+ if(!strcmp((char*)propName, "!")) {
field = jroot;
} else {
leaf = jsonPathGetLeaf(propName, propNameLen);
@@ -3957,9 +3955,7 @@ jsonFind(struct json_object *jroot, uchar *propName, int propNameLen, struct jso
goto finalize_it;
}
- if(!strcmp((char*)propName, "!") ||
- !strcmp((char*)propName, ".") ||
- !strcmp((char*)propName, "/") ) {
+ if(!strcmp((char*)propName, "!")) {
field = jroot;
} else {
leaf = jsonPathGetLeaf(propName, propNameLen);