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

Sashi K1
Kilo Guru

JSON (JavaScript Object Notation) is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML.



More you can read over net. LIke any other App that supports Web services using Rest could use JSON for data transmission. ServiceNow supports JSON formats in additional to WSDL



Every table is JSON/WSDL enabled



Check any table on ServiceNow




https://<your instance>.service-now.com/<table_name>_list?WSDL



https://<your instance>.service-now.com/<table_name>_list?JSON


Eg:


https://<your instance>.service-now.com/core_company_list?JSON



It just an ability to use alternate XML transmitting of data. Supported by most of Enterprise Applications/Platforms/Tools






Harsh Vardhan
Giga Patron

Hi Sheir,



If you don't want to hit server again nd again to get values then   you can create a JSON object and there you will store the server values for data interchanging .


The performance is much better than normal server side script.



Check the below link.



Let's do some JSON today



if you want you can check the below thread also.


Json help



Thanks,


Harshvardhan


SKum
Kilo Sage

Hi All,


                    Thanks all for   your valuable and quick replys.



                  Is this any way related to Discovery   or in case of integration using third party tool ?


Yes, you can use JSON in integrations (as Robert stated above.) Can you describe what exactly you are trying to do and this group can propose some solutions (many are already built in the platform as Sashikanth alluded to.)


thanks for your response chuck i am not trying to do anything i am just learning the concepts.