@Konboi memo

主に技術に関してつらつらと。

2016-02-19から1日間の記事一覧

PerlでJsonをencodeするときにsortされた状態で出力したい

TL;DR use JSON::PP JSON::PP->new->utf8->canoical(1)->encode(...) すればkeyのalphabet順になる refs: http://stackoverflow.com/questions/3532067/perl-how-to-sort-a-json-structure-on-something-other-than-root-key-attributes はじめに クライアン…