JSON Output Formatting?

Hi Bob,

bcusick:
Is there a way I can keep it in the order I’ve specified (so it will match my API schema)?

Is there a specific reason to keep it in order?
As David already mentioned the order has no effect on accessing the data since you need to access it directly by property name.
If it’s for display/document purposes you could keep an array with the property names in the correct order and iterate over that to fetch the values in order.
And as David already showed (although kinda buried in the code) you can get an Array with the property names of an object using the Object.keys(myObject) function.

Hope this helps.