include JsonSpec and define last_json method
Change order of attributes in JSON object to match output