-
Notifications
You must be signed in to change notification settings - Fork 3
Description
It might be a bit late for this, but you might want to consider a wide instead of deep structure, along the lines of http://jsonapi.org/. Effectively this makes the json feel more like a database and less like a document, which is very useful from a client programming standpoint. And Leveraging something like jsonapi also helps greatly when writing clients as there are well thought out use patterns and libraries with common functionality that can be reused.
The basic idea is that instead of the deep document model where a Network object contains a list of Station objects, in the jsonapi model a Network contains a list of station Ids. The actual Station objects can either be side loaded as part of the same json or returned by a subsequent request by using the ID. While it is natural to think in terms of the document hierarchy model, this wider, more database like approach can make for easier coding on both the client and server side.