Giter Site home page Giter Site logo

mojox-renderer-json-xs's Introduction

Build Status

NAME

MojoX::Renderer::JSON::XS - Fast JSON::XS handler for Mojolicious::Renderer

SYNOPSIS

sub setup {
    my $app = shift;

    # Via plugin
    $app->plugin('JSON::XS');

    # Or manually
    $app->renderer->add_handler(
        json => MojoX::Renderer::JSON::XS->build,
    );
}

DESCRIPTION

MojoX::Renderer::JSON::XS provides fast JSON::XS renderer to Mojolicious applications.

METHODS

build

Returns a handler for Mojolicious::Renderer that calls JSON::XS::encode_json.

SEE ALSO

JSON::XS Mojolicious Mojolicious::Renderer

LICENSE

Copyright (C) yowcow.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

yowcow <[email protected]>

mojox-renderer-json-xs's People

Contributors

yowcow avatar stigtsp avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

pqx

mojox-renderer-json-xs's Issues

t/03_blessed_to_json.t fails (with Mojolicious 6.49?)

My smoker machines started to generate the following failure:

#   Failed test '200 OK'
#   at t/03_blessed_to_json.t line 48.
#          got: '500'
#     expected: '200'

#   Failed test 'exact match for JSON Pointer ""'
#   at t/03_blessed_to_json.t line 48.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x36d8198)
# Looks like you failed 2 tests of 6.
# Looks like your test exited with 1 just after 6.
t/03_blessed_to_json.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 2/6 subtests 

Statistical analysis suggests that the problem started with Mojolicious 6.49 (negative theta is bad):

****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    2113689425112552960.00
[1='eq_6.49']        -1.0000          0.0000    -315090215858274624.00
[2='eq_6.50']        -1.0000          0.0000    -315090215858274624.00

R^2= 1.000, N= 46, K= 3
****************************************************************

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.