Hey,
seems like there is no support for the asterisk character as wildcard list index.
Examples:
def test do
DotNotes.get(%{ "data" => [%{foo: "bar"}, %{foo: "baz"}] }, "data.*.foo")
end
iex(6)> DotNotesTest.test
** (DotNotes.ParseException) Unable to parse 'data.*.foo' at character '*', column 6!
(dot_notes) lib/dot_notes/parse_exception.ex:38: DotNotes.ParseException.raise/1
(dot_notes) lib/dot_notes/keys.ex:30: DotNotes.Keys.execute/3
(dot_notes) lib/dot_notes/get.ex:20: DotNotes.Get.execute/2
def test do
DotNotes.get(%{ "data" => [%{foo: "bar"}, %{foo: "baz"}] }, "data[*].foo")
end
iex(7)> DotNotesTest.test
** (DotNotes.ParseException) Unable to parse 'data[*].foo' at character '*', column 6!
(dot_notes) lib/dot_notes/parse_exception.ex:38: DotNotes.ParseException.raise/1
(dot_notes) lib/dot_notes/keys.ex:30: DotNotes.Keys.execute/3
(dot_notes) lib/dot_notes/get.ex:20: DotNotes.Get.execute/2
I would have expected:
Hey,
seems like there is no support for the asterisk character as wildcard list index.
Examples:
I would have expected: