add json-resource API
just a starter for Felipe's phone app