3 Replies Latest reply on Nov 13, 2016 4:54 PM by user19752

    JSONCustomfunction array of objects

    rivet

      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?