.put() and .add() Documentation or Examples

2,922 views
Skip to first unread message

Kyle Nesslein

unread,
Sep 20, 2016, 9:28:25 AM9/20/16
to JsonPath
I'm trying to create a new JSON object with JsonPath by reading an object and changing a few elements.

Something like this:
Object sourceObject = JsonPath.read(document,sourcePath);
JsonPath.put(target, targetPath, sourceObject);

Is there any documentation or examples of how to use .put() and .add()? I've just been reading the source code to figure it out, but it is not clear how it should be used.

kalle stenflo

unread,
Sep 21, 2016, 2:36:13 AM9/21/16
to JsonPath

--
You received this message because you are subscribed to the Google Groups "JsonPath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonpath+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages