skip to Main Content

Replace part of the value of a json using regex and jq

I have a json like bellow: [ { "name": "architecture-design-detailed", "rootPath": "/media/ismail/architecture-design-detailed/_Working/_NotesFiltered/_software/architecture-design-detailed", "paths": [], "group": "", "enabled": true }, { "name": "architecture-design-detailed-engineering", "rootPath": "/media/ismail/architecture-design-detailed/_Working/_NotesFiltered/_software/architecture-design-detailed-engineering", "paths": [], "group": "", "enabled": true } ] If name is architecture-design-detailed, change name to new_name_here…

VIEW QUESTION

How to filter JSON in java

I have a JSON like below: { "name": "John", "age": 29, "city": "Bangalore", "country": "India" } But based on the request, I need to filter only the name and city. My response should be like the following: { "name": "John",…

VIEW QUESTION
Back To Top
Search