0

I have this scenario where a user should supply me a json path which will later on be evaluated eagerly on demand. This means I need somehow to use a regular expression or any other library which can validate the json path on client side without an actual schema.

Example given json path: $.phoneNumbers[:1].type

So the handler should be like isStringJsonPath(userExp:string) => boolean.

I have only found Java/other backend languages solutions so far, like this: https://github.com/json-path/JsonPath

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
Yoav Lahav
  • 77
  • 2
  • 6

0 Answers0