Can anyone explain what is JSON in servicenow

SKum
Kilo Sage

where is this JSON used and why and also the benefits from this

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

JSON stands for JavaScript Object Notation. It is not specific to ServiceNow, but available to JavaScript: Reference- JSON



It is a way of expressing your objects in a string notation - using methods like JSON.stringify() and converting those strings back to objects with JSON.parse().



This allows you to send complex information between systems or between the server and the browser, etc. in a textual format and turn it in to "intelligent" data on the other end. Very powerful!



You might be interested in episode 33 here as an example:



TechNow Episode List


View solution in original post

12 REPLIES 12

Chuck Tomasi
Tera Patron

JSON stands for JavaScript Object Notation. It is not specific to ServiceNow, but available to JavaScript: Reference- JSON



It is a way of expressing your objects in a string notation - using methods like JSON.stringify() and converting those strings back to objects with JSON.parse().



This allows you to send complex information between systems or between the server and the browser, etc. in a textual format and turn it in to "intelligent" data on the other end. Very powerful!



You might be interested in episode 33 here as an example:



TechNow Episode List


Deepa Srivastav
Kilo Sage

Check below link too..


How to Parse JSON Data? | SN Commander




Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy


Uncle Rob
Kilo Patron

JSON isn't a ServiceNow concept, it just allows you to parse JSON


Here's a couple web resources on JSON:


JSON


JSON Introduction


An Introduction to JavaScript Object Notation (JSON) in JavaScript and .NET



Its just a very common way to package what would otherwise be table data in a way that both humans and machines can tolerate.   "Parsing" JSON is critical for integrations.   Many integration methods will return a "JSON Object" which will be a massive string of name value pairs.   Once parsed, you can interact with the records in much the same way you would a GlideRecord query.


Dang it!   I just got #Tomasied again.