Subject: | escaping dot in json::path |
Date: | Fri, 17 Jan 2014 17:33:48 +0000 |
To: | "bug-JSON-Path [...] rt.cpan.org" <bug-JSON-Path [...] rt.cpan.org> |
From: | "Laager,Max,NNSA LAUSANNE,IT Database & Performance" <Max.Laager [...] nespresso.com> |
Hello
I tryied to esacpe the jsonpath ( I Have dots '.' In the name of the fields and can't parse json)
Example
my $jpath = JSON::Path->new('$..[ \'foo-bar\']'); # work fine
but if I replace foo-bar with foo.bar in the json the json:path does not work any more
my $jpath JSON::Path->new('$..[ \'foo.bar\']'); # does not work
how do I escape the dots or can I fix this ?
Max