On Thu Dec 10 18:44:54 2015, DBOOK wrote:
Show quoted text> My only opinion is that JSON::MaybeXS should be used to maintain
> consistency going forward; as such I'm curious what functionality it
> doesn't have that JSON::Any has?
Basically, for the goal of "pick the best available JSON implementation", JSON::MaybeXS is superior. Hence why for the majority of things JSON::Any was previously used for, it's a better approach.
However, JSON::MaybeXS will never handle "try and use whatever JSON implementation you already have", because (1) AAAAAAAAAAAAAAAAAAA (2) JSON::Any already covers this beautifully.
For an intentionally low-dependency module like HTTP::Thin::UserAgent that's trying hard to be easy to slot in to existing codebases with a minimum of extra requirements, JSON::Any does make logical sense - it's not necessarily the route I'd personally take, but it's absolutely still a valid route.
As such, speaking as the original author of JSON::MaybeXS and a happy user of JSON::Any prior to writing JSON::MaybeXS, I would say that in the current situation my opinion is "if this code was being written anew I would write it with JSON::MaybeXS, but I see no compelling reason to convert it as it currently stands."