http://qs1969.pair.com?node_id=11154366


in reply to Re^2: Preserve the order in JSON
in thread Preserve the order in JSON

Hello Deven,

nice! as side note you can force JSON::PP to always order keys alphabetically using canonical or giving it a custom order function: JSON::PP#sort_by thus avoiding monkey patching.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.