Subject: | only one wildcard allowed in list passed to set_jsonpointer |
Date: | Sat, 30 Jan 2016 03:46:00 +0000 |
To: | "bug-JSON-SL [...] rt.cpan.org" <bug-JSON-SL [...] rt.cpan.org> |
From: | MICHAEL J MCCLENNEN <mmcclenn [...] geology.wisc.edu> |
Module: JSON::SL 1.0.6
Perl: 5.16.3
Platform: Mac OS X 10.8.5
Problem:
If I call set_jsonpointer() with a list that includes more than one wildcard, only the last one will be active and the rest are silently ignored.
If this is an unavoidable limitation in JSON::SL, then it should be prominently mentioned in the documentation, and an error message returned if you pass more than one wildcard! Otherwise, this limitation needs to be removed.
Example:
$json_parser->set_jsonpointer(["/records/^", "/errors/^", "/warnings/^"]);
-- Michael McClennen