Create Java JSONObject by JSONPath expression

Viewed 145

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"
  }
 ]
}
0 Answers
Related