Skip to content

Change from JSON to JSON::MaybeXS#176

Merged
plu merged 2 commits intomasterfrom
refactor/change_JSON
Nov 12, 2014
Merged

Change from JSON to JSON::MaybeXS#176
plu merged 2 commits intomasterfrom
refactor/change_JSON

Conversation

@schwern
Copy link
Collaborator

@schwern schwern commented Nov 11, 2014

The maintainer of JSON::XS is not someone you ever want to interact with. JSON::MaybeXS prefers Cpanel::JSON::XS before JSON::XS which allows people to remove JSON::XS from their stack.

For https://rt.cpan.org/Ticket/Display.html?id=100031

Checking the exactly class of an object is bad practice.  Check $obj->isa($class)
instead.

Using confess for a full stack trace on isa failure.  die won't show
where the actual attempt to set the attribute was made and croak will
report somewhere in the middle of Moo.
This gives the user the option to use Cpanel::JSON::XS for fast JSON
parsing instead of JSON::XS.  JSON::XS is written by Marc Lehmann who
is notoriously abusive to his users.

See https://rt.cpan.org/Ticket/Display.html?id=100031
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 06ded5d on refactor/change_JSON into * on master*.

@karenetheridge
Copy link

\o/

@plu
Copy link
Owner

plu commented Nov 12, 2014

Thanks :)!

plu added a commit that referenced this pull request Nov 12, 2014
Change from JSON to JSON::MaybeXS
@plu plu merged commit 5e4a816 into master Nov 12, 2014
@schwern schwern deleted the refactor/change_JSON branch November 12, 2014 19:44
schwern added a commit that referenced this pull request Nov 20, 2014
          - #178 Fixed the minimum version of Moo.
          - #176 Using JSON::MaybeXS instead of JSON to allow
            alternatives to JSON::XS such as CPanel::JSON::XS.
          - #177 Using Path::Tiny instead of File::Slurp to simplify file
            access and avoid File::Slurp unicode bugs.
          - #175 Now using Github for issue tracking.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants