<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1452803720507_10922" dir="ltr"><span id="yui_3_16_0_1_1452803720507_10842">Reini,</span></div><div id="yui_3_16_0_1_1452803720507_10949" dir="ltr"><span id="yui_3_16_0_1_1452803720507_10948">The Cpanel::JSON::XS docs say sort_by "currently only (un)sets the <code id="yui_3_16_0_1_1452803720507_10899">canonical</code> option, and ignores custom sort blocks."  That to me does not mean operational.  But, are the docs wrong?</span></div><div id="yui_3_16_0_1_1452803720507_10921" dir="ltr"><span></span> </div><div id="yui_3_16_0_1_1452803720507_10903" dir="ltr"><span id="yui_3_16_0_1_1452803720507_10909">You are right, all the JSON incompatibilities have really screwed up Perl as being the go to tool for JSON.  This service that I have to write against REALLY sucks that it requires JSON objects to be sorted.</span></div><div id="yui_3_16_0_1_1452803720507_10920" dir="ltr"><span id="yui_3_16_0_1_1452803720507_10933">Mike</span></div><div id="yui_3_16_0_1_1452803720507_10915" dir="ltr"><span id="yui_3_16_0_1_1452803720507_10934"></span> </div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1452803720507_10833" style="display: block;">  <div id="yui_3_16_0_1_1452803720507_10832" style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1452803720507_10831" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1452803720507_10830" dir="ltr"> <font id="yui_3_16_0_1_1452803720507_10834" face="Arial" size="2"> <hr size="1" id="yui_3_16_0_1_1452803720507_10840"> <b id="yui_3_16_0_1_1452803720507_10969"><span id="yui_3_16_0_1_1452803720507_10968" style="font-weight: bold;">From:</span></b> Reini Urban <reini.urban@gmail.com><br> </font></div><div class="y_msg_container" id="yui_3_16_0_1_1452803720507_10837"><div id="yiv0844074734"><div id="yui_3_16_0_1_1452803720507_10836"><div id="yui_3_16_0_1_1452803720507_10835" dir="ltr">Everyone has those problems, that's why you should use Cpanel::JSON::XS instead </div>
<div class="yiv0844074734gmail_quote" id="yui_3_16_0_1_1452803720507_10838">On Jan 14, 2016 22:36, "Michael R. Davis via Houston" <<a id="yui_3_16_0_1_1452803720507_10839" href="mailto:houston@pm.org" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:houston@pm.org">houston@pm.org</a>> wrote:<br clear="none"><blockquote class="yiv0844074734gmail_quote" id="yui_3_16_0_1_1452803720507_10895" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div class="yiv0844074734yqt2155306400" id="yiv0844074734yqt59759"><div id="yui_3_16_0_1_1452803720507_10894"><div id="yui_3_16_0_1_1452803720507_10893" style="color: rgb(0, 0, 0); font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"><div id="yui_3_16_0_1_1452803720507_10892" dir="ltr">When encoding a JSON::XS::Boolean object with JSON::PP, I'm getting JSON "null" instead of JSON "true" or "false".  I have to use JSON::PP for it's sort_by capability in sending JSON but I use JSON::XS for performance in decoding.</div></div></div></div></blockquote></div></div></div><br></div> </div> </div>  </div></div></body></html>