joshbuddy / jsonpath

Ruby implementation of http://goessner.net/articles/JsonPath/
MIT License
447 stars 72 forks source link

Add Option to configure max_nesting #142

Closed bk-chovatiya closed 2 years ago

bk-chovatiya commented 2 years ago

JSON default allows 100 level deep parsing. If you want to go beyond 100 level we need to configure max_nesting.

Screen Shot 2022-03-08 at 1 10 19 PM

Steps for Reproduce:

Try to Prase 101 level deep hash JsonPath.new('$.a').on(101_level_deep_hash) will get above error.

joshbuddy commented 2 years ago

Hey @bk-chovatiya, thanks for the PR. I've run the tests, please note the test failures. Once this is worked out happy to merge and release it

bk-chovatiya commented 2 years ago

@joshbuddy I have fixed the tests. Let me know if you need any help before you merge.

joshbuddy commented 2 years ago

Hey @bk-chovatiya I've merged and released this. Thank you for the fix