We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this JSON with me
[ { "msg": "hello", "_uuid": "1483f2e6-1241-4e84-9fbf-503ce5ea64df" }, { "msg": "hello", "child": { "timestamp": "any_timestamp" }, "_uuid": "dbe96d86-4542-4bbd-b64e-f31d69fa735b" } ]
I am executing this code to update the timestamp value
DocumentContext collections_doc = JsonPath.parse(json_data).set("$[?(@.msg == 'hi')].child.timestamp","new_timestamp");
Its just updating the first child.timestamp, is there any solution so that if object don't have any key, then it will be created.
The text was updated successfully, but these errors were encountered:
@kallestenflo Any updates on this issue, mentioning you here because this might be the important one.
Sorry, something went wrong.
No branches or pull requests
I have this JSON with me
I am executing this code to update the timestamp value
Its just updating the first child.timestamp, is there any solution so that if object don't have any key, then it will be created.
The text was updated successfully, but these errors were encountered: