diff --git a/Core ServiceNow APIs/GlideJsonPath/GlideJSONPath reader example/script.js b/Core ServiceNow APIs/GlideJsonPath/GlideJSONPath reader example/script.js new file mode 100644 index 0000000000..ddfd540a46 --- /dev/null +++ b/Core ServiceNow APIs/GlideJsonPath/GlideJSONPath reader example/script.js @@ -0,0 +1,2 @@ +var v = new GlideJsonPath('{"lib":{"jsonpath":{"cricket":{"name":"India","players":["Rohit","Dhoni","Kholi"]}}}}'); +var l = v.read("$['lib']['jsonpath']['cricket']['players'][*]");