joebeachjoebeach/json-path-finder

Why the path starts with "X." instead of $?

Closed this issue · 4 comments

Why the path starts with "X." instead of $?

Why $ instead of X? Both are arbitrary. If you provide a reason along with a pull request, I'm open to it.

$ is used by SQL Server, Oracle and more.

From JsonPath spec:

JSONPath assumes the abstract name $ assigned to the outer level object.

https://goessner.net/articles/JsonPath/

I'm closing this as I don't think $ is a great idea. While declining in popularity, jQuery is still used all over the internet, and it is universally used as the $ variable. I think that would cause a lot more confusion in this app than using x.