JSON rest api base.