-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Valid JsonPath expression $.*
on Json Array results in exception
#2913
Comments
To add to the report, according to the JsonPath draft spec, section 1.4.4, However, not only does Newtonsoft.Json implement Since P.S.: While the very first Json draft spec version 00 -- draft-ietf-jsonpath-base-00 -- also already explains the
in passing. The same mention appears at https://goessner.net/articles/JsonPath/, and Newtonsoft.Json therefore seems to also violate the old Goessner draft from 2007 in this respect... |
Source/destination JSON
Expected behavior
Executing
JToken.SelectTokens("$.*")
on a valid JSON array should produce multiple JToken resultsActual Behavior
Repro Steps
https://dotnetfiddle.net/ginhZu
Running the same query here https://json-everything.net/json-path produces a valid result.
WorkAround
JsonPath
$[*]
products the expected resultThe text was updated successfully, but these errors were encountered: