Group
Extension

Matches 2

SWISH-Filter ( K/KA/KARMAN/SWISH-Filter-0.191.tar.gz, KARMAN, 2015; MetaCPAN )
SWISH-Filter/lib/SWISH/Filters/JSON.pm ( view source; MetaCPAN )
package SWISH::Filters::JSON;
use strict;
use vars qw( $VERSION @ISA );
$VERSION = '0.191';
@ISA     = ('SWISH::Filters::Base');
use Data::Dump qw( dump );

sub new {
    my ($class) = @_;
    my $sel
pplication/json!], }, $class;
    return $self->use_modules( 'JSON', ['Search::Tools::XML' => '0.88'], );
}

sub filter {
    my ( $self, $doc ) = @_;

    # get the raw content
    my $json = $doc->f
etch_doc_reference;

    # convert to perl
    my $perl = JSON::decode_json($$json);

    # convert to XML
    my $xml = Search::Tools::XML->perl_to_xml(
        $perl,
        {   root       => 'doc'
SWISH-Filter ( K/KA/KARMAN/SWISH-Filter-0.191.tar.gz, KARMAN, 2015; MetaCPAN )
SWISH-Filter/lib/SWISH/Filter/MIMETypes.pm ( view source; MetaCPAN )
    gz   => 'application/x-gzip',
    htm  => 'text/html',
    html => 'text/html',
    json => 'application/json',
    mp3  => 'audio/mpeg',
    pdf  => 'application/pdf',
    ppt  => 'application/vn

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.