006; use strict; use warnings;
package JSON::ToHTML;
our $VERSION = '0.001';
use Scalar::Util ();
sub json_object_to_html;
sub json_array_to_html;
sub json_values_to_html {
my $copy;
map +(
(
? '<i>null</i>'
: 'HASH' eq ref $_ ? json_object_to_html $_
: 'ARRAY' eq ref $_ ? json_array_to_html $_
: eval { $$_ eq 1 or $$_ eq 0 } ? ( $$_ ?
/div>'
: grep s!([<>"'&@\x{80}-\x{10FFFF}])!'&#'.(ord $1).';'!ge || 1, $copy = $_
), @_
}
sub json_identical_keys {
return if grep 'HASH' ne ref, @_;
my $keyset = join ':', map length . $_, my @