Struct::Path::JsonPointer - JsonPointer (rfc6901) syntax frontend for Struct::Path
Version 0.04
use Struct::Path qw(path); use Struct::Path::JsonPointer qw(str2path); my $data = { "foo" => ["bar", "baz"], "" => 0, "a/b" => 1, "c%d" => 2, "e^f" => 3, "g|h" => 4, "i\\j" => 5, "k\"l" => 6, " " => 7, "m~n" => 8 }; my ($found) = path($data, str2path('/foo/0'), deref => 1); print $found; # 'bar'
Nothing is exported by default.
Convert Struct::Path path to JsonPointer.
$pointer = path2str($path);
Convert JsonPointer to Struct::Path path.
$path = str2path($pointer);
Michael Samoglyadov, <mixas at cpan.org>
<mixas at cpan.org>
Please report any bugs or feature requests to bug-struct-path-jsonpointer at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Struct-Path-JsonPointer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-struct-path-jsonpointer at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Struct::Path::JsonPointer
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Struct-Path-JsonPointer
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Struct-Path-JsonPointer
CPAN Ratings
http://cpanratings.perl.org/d/Struct-Path-JsonPointer
Search CPAN
http://search.cpan.org/dist/Struct-Path-JsonPointer/
JSON::Pointer, rfc6901
Struct::Path, Struct::Path::PerlStyle, Struct::Diff
Copyright 2018 Michael Samoglyadov.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Struct::Path::JsonPointer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Struct::Path::JsonPointer
CPAN shell
perl -MCPAN -e shell install Struct::Path::JsonPointer
For more information on module installation, please visit the detailed CPAN module installation guide.