need guidance on encode JSON and sorting
- From: rp.neuli@xxxxxxxxx (Rajeev Prasad)
- Date: Sun, 5 Feb 2012 20:04:16 -0800 (PST)
in the script this is all i am using JSON as:
....
use JSON::XS;
....
.....
$return_json_text = encode_json $tmp_hash;
this variable ($return_json_text) is then used to display values. I need this to be orderd, but not able to figure how to order the outcome??? I read about $enabled = $json->get_canonical on JSON's page but not sure hot use it as i do not have $json or such object created. Also I am assuming it would be sorted on key field of the JSON hash.
ty.
Rajeev
.
- Follow-Ups:
- Re: need guidance on encode JSON and sorting
- From: Rajeev Prasad
- Re: need guidance on encode JSON and sorting
- Prev by Date: Re: DBIx::Class add rows to table, confusion in perldoc example....
- Next by Date: Re: need guidance on encode JSON and sorting
- Previous by thread: DBIx::Class add rows to table, confusion in perldoc example....
- Next by thread: Re: need guidance on encode JSON and sorting
- Index(es):