sorting json alphabetically can be done by passing sort_keys=True to json.dumps but this allows for custom sorting if we want. I think it's useful to have the link, and unique identifier first, and in general to have keys sorted for consistent returns.
Also, this allows for consistent sorting regardless of return type (ie xml)
sorting json alphabetically can be done by passing sort_keys=True to json.dumps but this allows for custom sorting if we want. I think it's useful to have the link, and unique identifier first, and in general to have keys sorted for consistent returns. Also, this allows for consistent sorting regardless of return type (ie xml)