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
String json = "{"setting":{"profit_ report":{"profit_ report_ tb":{"__ meta":{"text":"abc"}}}}}";
Want to append a property check:true , how to write the set method
The text was updated successfully, but these errors were encountered:
@goodluckwgw I'm not sure I'm getting the issue, can you please extend?
Sorry, something went wrong.
@goodluckwgw You can append a key in a specific path using json.set, for example: For
json.set
> json.set doc:1 $ '{"setting":{"profit_report":{"profit_report_tb":{"__meta":{"text":"abc"}}}}}' OK
You can add check:true
check:true
> json.set doc:1 $.setting.profit_report.profit_report_tb.__meta.check 'true' OK
And get the key check as a sibling of key text
check
text
> json.get doc:1 $ "{\"setting\":{\"profit_report\":{\"profit_report_tb\":{\"__meta\":{\"text\":\"abc\",\"check\":true}}}}}"
No branches or pull requests
String json = "{"setting":{"profit_ report":{"profit_ report_ tb":{"__ meta":{"text":"abc"}}}}}";
Want to append a property check:true , how to write the set method
The text was updated successfully, but these errors were encountered: