Learn JavaScript on the Now Platform: Lesson 30 - JSON Stringify and Parse

preview_player
Показать описание
Lesson 30 introduces you to JSON.stringify() and JSON.parse() to translate objects to strings and back again. Watch the video to find out why this is such a powerful JavaScript feature.

Рекомендации по теме
Комментарии
Автор

6:08
Using JSON.stringify - to convert Object to String
Using JSON.parse - to convert String to Object.

AMServiceNowDeveloper
Автор

So easy to understand . Thanks chuck for this wonderful tutorials ❤

Freak
Автор

Thanks for putting together this video. When it comes to passing JSON data to an API for instance. How do we know whether we need to stringify the JSON object in the post payload. How is that specification usually determined?

bch
Автор

For someone trying to get JSON object from a system property into a script such as a business rule, please note that you do not need to stringify the system property. All you need to do is to parse it to get an object which you can then use in the script.

akj
Автор

I have one doubt, in the server side i have create the object then i want to pass that object to client side which is the best way to pass it. please suggest me, Thanks

mohamedyasin
Автор

i could not understand why we are using JSON.stringify(bookList, null, 4) how does that work?

rawnakkapoor
Автор

Hi, after run script we have a output. That can be downloaded in JSON format

ashishkukudapu
Автор

hi, how to get JSON in servicenow from external service, for example openweather?

mkotar
Автор

Can anyone please tell me what 2nd and 3rd values on function call: JSON.stringify(bookList, null, 4), stands for ?

shravanraj