Support versions 1 and 2 of JSON::XS

WWW: https://metacpan.org/release/JSON-XS-VersionOneAndTwo
