tidwall / gjson

Get JSON values quickly - JSON parser for Go
MIT License
14.31k stars 854 forks source link

Is there a way of validate paths? #180

Open zhaodiaoer opened 4 years ago

zhaodiaoer commented 4 years ago

First, thank you a lot for gjson. I import gjson to my project and use path syntax to standardize input, but I'm wondering if there is a way to validate path string?

tidwall commented 4 years ago

There's no path validation function. Sorry.

erenming commented 4 years ago

There's no path validation function. Sorry.

Is the any planning to such function? I think it can be really helpful with error handling

tidwall commented 3 years ago

@erenming This is something I'm looking in to. But I don't have an ETA.