NAME
JSON::Conditional - The great new JSON::Conditional!
VERSION
Version 0.01
SYNOPSIS
Quick summary of what the module does.
use JSON::Conditional;
my $c = JSON::Conditional->new();
my $json = '{
"for": {
"key": "testing",
"each": "foo",
"if": {
"m": "test",
"key": "test",
"then": {
"abc": 123
}
},
"elsif": {
"m": "other",
"key": "test",
"then": {
"def": 456
}
},
"else": {
"then": {
"ghi": 789
}
}
}
}';
$json = $c->compile($json, {
testing => [
{ test => "other" },
{ test => "test" },
{ test => "other" },
{ test => "thing" },
]
}, 1);
...
$json = {
foo => [
{ def => 456 },
{ abc => 123 },
{ def => 456 },
{ ghi => 789 },
]
};
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-json-conditional at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=JSON-Conditional. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc JSON::Conditional
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2020 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)