cyrilschumacher / json-property-filter

Filter JSON object by including/excluding properties.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Property match not exact

MoMannn opened this issue · comments

If I have a Json as such:

{ "test": "1", "test1": "3", "desc": "testing" }

And I filter as: ["test"]

I will get result:

{ "test": "1", "test1": "3" }

Meaning include does not do exact matching.

Hello @MoMannn, I am rewriting the library and I plan to take your point in this new version.

Fixed in the version: 2.0.0.