Array of JSON objects

G Balaji
Kilo Guru

Hi,

How to initialize, add, remove objects to JSON array.

Scenario is below,

I've a scheduled job which will call a script include function which would return list of sys-id and field value of the record. 

Thanks.

7 REPLIES 7

Omkar Mone
Mega Sage

Hi

Check this tutorial on JSON on w3schools. 

https://www.w3schools.com/js/js_json_arrays.asp

 

Regards,

Omkar Mone

AbhishekGardade
Giga Sage

Hello Balaji,


Chcek out this article for all your need. All Operation related to JSON and array are explained

JSON PARSING: USE CASE AND SOLUTIONS

Please mark as Correct Answer and Helpful, if applicable.
Thanks!
Abhishek Gardade
Hexaware Technologies

Thank you,
Abhishek Gardade

G Balaji
Kilo Guru
Thanks Omkar and Abhishek for the response. I'm looking to build JSON array. I'm not sure what is the equivalent function of pushing objects to json array.