Well, these days it seems that everyone knows what JSON is and what it’s for. But, let me recap anyway.
I call this concept – Active JSON. It’s just a bit more complex then normal JSON, but a lot more dynamic. What’s the use of it? It’s not particularly useful for data transfer or persistence, I must admit, however it may be used to define JSON templates. All you need to do, is provide some context, while executing the dynamic part like shown on Figure 4.
If you want to see Active JSON in action, you may check out Restty - tool for accessing RESTful JSON-based Web Services that we built around it.