AnsweredAssumed Answered

JSON Array

Question asked by abs425 on Nov 11, 2018
Latest reply on Nov 21, 2018 by fmpdude

Newbie here.  I'm trying to create a record and place the values in fields for each of the objects in a JSON array similar to this example data:

 

{

"bakery" :

{

"product" :

[

{

"id" : "FB1",

"name" : "Donuts",

"price": 1.99,

"stock" : 43,

"category" : "Breads",

"special" : true

},

{

"id" : "FB2",

"price": 22.5,

"name" : "Chocolate Cake",

"stock" : 23,

"category" : "Cakes",

"special" : true

},

{

"id" : "FB3",

"price": 3.95,

"name" : "Baguette",

"stock" : 34,

"category" : "Breads",

"special" : true

}

]

}

}

 

I think I need a script with a counter, but I'm not sure how to do this.  Any help would be greatly appreciated!

 

Outcomes