Received json encode object from server side in php MONTHLY_FORMAT, read that object in jquery as
var MONTHLY_FORMAT = '<?php echo $MONTHLY_FORMAT; ?>';
Here in console get output like this:
{"01":"January","02":"February","03":"March","04":"April","05":"May","06":"June","07":"July ","08":"August","09":"September","10":"October","11":"November","12":"December"}
but after doing JSON parse
var MONTHLY_FORMAT_PARSE = JSON.parse( MONTHLY_FORMAT );
return output like
{10: "October", 11: "November", 12: "December", 01: "January", 02: "February", 03: "March", 04: "April", 05: "May", …}
How would I get the month json object list in proper month sequence ?