VoidName
VoidName

Reputation: 402

Is there JsonPatch analog for filtering json data?

I need to construct complex query to json like "field name is Bob and field age less then 40 or salary more or equal 40000"

For patch json data I can use JsonPatch, but is there any format for filtering json data?

Upvotes: 0

Views: 507

Answers (1)

makisarun
makisarun

Reputation: 11

JSON Patch is used to perform partial update on json resources. It seems like you are looking for ways to query a json resource. For this you can use JsonPath which is a query language for JSON

I hope this helps anyone.

Upvotes: 1

Related Questions