vendredi 22 novembre 2019

How can I convert to Json Object to Json Array in Karate?

I want to convert Json Object to Json Array in Karate to use 'match each' func. I am getting to ('match each' failed, not a json array) error when I use match each func with Json Object.

Here is My Json Object:

{
  { "a": "q"
    "b": "w",
    "c": "t"
  },
  { "a": "x"
    "b": "y",
    "c": "z"
  }
}

And here is what I need:

  [  
    {
     { "a": "q"
       "b": "w",
       "c": "t"
     },
     { "a": "x"
       "b": "y",
       "c": "z"
     }
   }
 ]

Aucun commentaire:

Enregistrer un commentaire