Given a sample of JSON, derive an API