A universal adapter for JS objects received over JSON