loopback: custom model serialization
<p>The general question is: how to hook into loopback's serialization process (model 2 json coversion).
The more concrete example is: I need to add <code>@type</code> field to each model (nested models too) returned from loopback api server.</p>