mendix / RestServices

REST service module for Mendix. Supports consuming and publishing REST based services and real-time data synchronization. Supports JSON, form-encoded, multipart and binary data transport.
Apache License 2.0
31 stars 46 forks source link

Order of primitives and sub structure #99

Closed nvwieren closed 6 years ago

nvwieren commented 6 years ago

I've published a REST microflow returning a root object with several sub structures. One of these contains 2 attributes and a reference to a deeper substructure.

Although not important functionally; is it possible to make sure primitives are serialized first and references after that?

mweststrate commented 6 years ago

Note that in the JSON standard there is no ordering of attributes, and it shouldn't matter for the consumer in which order they arrive. { x: 1, y: 2 } should be treated exactly the same as { y: 2, x: 1}

Op do 22 feb. 2018 om 10:49 schreef Nick van Wieren < notifications@github.com>:

I've published a REST microflow returning a root object with several sub structures. One of these contains 2 attributes and a reference to a deeper substructure.

Although not important functionally; is it possible to make sure primitives are serialized first and references after that?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mendix/RestServices/issues/99, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvGhKbCMF70ssK6IohMm2tLpk7ewNJBks5tXThEgaJpZM4SPA1G .

nvwieren commented 6 years ago

Hence my comments - "not important functionally" - I was wondering if there is any possibility to show attributes first, references last just for aesthetic purposes.