rivet

JSONCustomfunction array of objects

Discussion created by rivet on Nov 11, 2016
Latest reply on Nov 13, 2016 by user19752

working with JSONCustomFunctions I would like to nest multiple objects in an array

 

{
  "nominees":
 [
     {
      "first": "john",
      "city": "toronto"
     },

     {
     "first": "jane",
     "city": "vancouver"
     }

 ]
}

 

 

 

attempted structure, but I am sure line4 is looking for a jasonAv on line 5

 

jsonO (
  jsonOp (
  "nominees" ;
     jsonA (
          jsonO (
               jsonOp ( "first" ; "john" ) &
               jsonOp ( "city" ; "toronto" ) 
           ) &
          jsonO (
               jsonOp ( "first" ; "Jane" ) &
               jsonOp ( "city" ; "vancouver" )
          )
     )
  )
)

 

Is this possible?

Outcomes