0

I have struggles to craft working jsonpath (Jayway https://jsonpath.herokuapp.com/) where property (scalar) is returned as array.

For input

{
  "a":{
    "b":"valueofb"
  }
}

I would like obtain array: ["valueofb"] NOT just valueofb

Cron Merdek
  • 1,084
  • 1
  • 14
  • 25

1 Answers1

0

I have found an option how to do it.

$..a.b
Cron Merdek
  • 1,084
  • 1
  • 14
  • 25