base components for JSON REST API