I'm building JSON with JavaScript. Here's my object:
catalogoJSON = {
condicion: condicionCatalogos0,
tipo: tipoCatalogos0,
idCatalogo: idCatalogo0,
valor: valorCatalogos0
};
But when I print it with Firebug, I get my properties printed alphabetically like this:
{
condicion: condicionCatalogos0,
idCatalogo: idCatalogo0,
tipo: tipoCatalogos0,
valor: valorCatalogos0
}
Is there a way in JavaScript to get back my JSON with its properties in the order that I declare them, without having to change my properties' names?