4

Using this library I am trying to create a JSON Object by jsonpath expression. How can I do it?

Sample problem.

JsonPath expression: $.data[*].firstname, value = "John doe"

The JsonObject should be

{
 "data": [
  {
    "firstname": "John Doe"
  }
 ]
}
Akshay
  • 2,506
  • 4
  • 34
  • 55
SvK
  • 41
  • 4
  • Jayway JsonPath library offers the possibility to [set a value](https://github.com/json-path/JsonPath#set-a-value). – Akshay G Nov 29 '21 at 11:10

0 Answers0