restful json service with persistence