Skip to content

Commit 14244d8

Browse files
script.js
This example searches a JSON document for all developers listed under the specified path.
1 parent c8c2e06 commit 14244d8

File tree

1 file changed

+2
-0
lines changed
  • Core ServiceNow APIs/GlideJsonPath/GlideJsonPath Reader Example

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var v = new GlideJsonPath('{"lib":{"jsonpath":{"cricket":{"name":"India","players":["Rohit","Dhoni","Kholi"]}}}}');
2+
var l = v.read("$['lib']['jsonpath']['cricket']['players'][*]");

0 commit comments

Comments
 (0)