perlorg / www.pm.org

Perl Mongers Website
http://www.pm.org
25 stars 53 forks source link

added canonical to sort the JSON #118

Closed jacoby closed 7 years ago

jacoby commented 7 years ago

I found out about this working with another problem, but if, when you use ->pretty, you also add ->canonical, it sorts the keys.

jacoby commented 7 years ago

I should've mentioned that canonicalizing the JSON output will solve this issue https://github.com/perlorg/www.pm.org/issues/117

ranguard commented 7 years ago

Oops sorry, I'm obviously not watching this repo! - just did the same myself! https://github.com/perlorg/www.pm.org/commit/8aca365af55845498e988bed2742f149fa92ae34 - thanks