0

I want to create a JSON String for a Map of JSON Path as key and the value is the JSON value itself.

(It is somehow mentioned here as a solution) but neither 2.7 nor 2.8 version of Jayway's published maven Central has Option.CREATE_MISSING_PROPERTIES_ON_DEFINITE_PATH

My question is simple: Map<String, String> jsonMap;

Example Key String, Example Value Customer.Account.Number, 1234 Customer.Account.type, Checking

Expected: {"Customer":{"Account":{"Number":1234, "type":"checking"}}}

Appreciate any help in this regards.

2
  • Are you using this? github.com/json-path/JsonPath Commented Aug 16, 2023 at 3:38
  • Trying it but it's complicated to build the Json Path based Json Document Object dynamically. Commented Aug 24, 2023 at 23:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.