Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
only skip hash keys sorting for actually tied hashes #42
As of version 2.25, JSON::XS announced that it won't sort tied hashes under the 'canonical' option. But it's implementation covered too broad range of magic - SvRMAGICAL is set for any magic other then mg_get/mg_set upon cast.
It was discovered in the garu/Data-Printer#75 issue that the core module Hash::Util::FieldHash can easily produce hashes that won't be sorted by JSON::XS::encode_json despite being not tie'd.
Testing in branch