json-path-processor
json-path-processor copied to clipboard
$.me.1 vs $.me[1]
You seem to follow a different approach to selecting items in an array than this http://goessner.net/articles/JsonPath/
$.me.1 vs $.me[1]
Any particular reason?
I'm considering forking this project to support this approach. Is this something you would merge back in?
I support foo.bar style path just because it's more simple and straightforward in JavaScript, but I think foo['bar'] is also good. Here are some points:
- To parse
foo['bar'][0]will cost a little more thanfoo.bar.0 - The style
foo['bar'][0]is a little bit longer thanfoo.bar.0