Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
nbabu228
Contributor II
Contributor II

using Json structure in twritejsonfield,im facing issue plz help me to create curly brackets{object} inside the square brackets[Array]

output:- {"id":"ssssssss","t1":true,"t2":"AA","t3":[],"t4":[],"t5":null,

"Values":{"s1":["HYD",null,"kggggkgh"],"s2":{"a1":"HYD","a2":null,"s2":"hlkjfgfh"}}}

 

Expected output:-

"id": "ssssssss",        

"t1": true,

        "t2": "AC",

        "t3": [],

        "t4": [],

        "t5": null,

        "values": {

          "s1": [    

            {     <-----------------------this two brackets needed 

              "A1": "Hyd",

              "A2": null,

              "s1": "kggggkgh"

            }

          ],

          "s2": [

            {

              "a1": "hyd",

              "a2": null,

              "s2": "hlkjfgfh"

            }}

Labels (4)
1 Reply
Harvey
Contributor
Contributor

Thankful for the little by little useful exercise. Has conclusively the ordinary impact!