REST API for persisting any JSON data