Closed progval closed 9 years ago
On the demo website you can do .drinkPreference :first-child to get the first child, whatever its type ("whiskey").
.drinkPreference :first-child
"whiskey"
However, this implementation does not behave this way: unless a type is given, it does not return anything.
$ python -m jsonselect ".drinkPreference :first-child" conformance_tests/upstream/level_1/basic.json $ python -m jsonselect ".drinkPreference string:first-child" conformance_tests/upstream/level_1/basic.json "beer"
Update: I edited my initial message to make it clearer what the issue is
Dupe of #1
On the demo website you can do
.drinkPreference :first-child
to get the first child, whatever its type ("whiskey"
).However, this implementation does not behave this way: unless a type is given, it does not return anything.