AnsweredAssumed Answered

JSON input without label names

Question asked by Thomas Skytte Damoe Employee on Jun 4, 2018

Hi guys this is probably very trivial but I feel like Im hitting a wall. I am using the REST client step to get JSON data which I then parse through the JSON input step. I manage to get the fields from counter section just fine using JSON path  $..name, $..serial etc.. The data section I pour into one field and try to address that with a second JSON step. But how do I refer to JSON data with no label? What does the syntax look like? $.[1] does not work. I have not been able to find info anywhere. :-(

 

{

     "counter" :   {

          "name" : "Master",

          "serial" : "XXXXXXXX",

          "delta" : 3600,

          "types" : {

               "in" : 3,

               "out" : 4

          }

     },

     "data" : {

          "20180228010000" : [102,98],

          "20180228020000" : [450,467],

          "20180602000000" : [97,69]

     }

}

 

BR

Thomas

Outcomes