Added basic json api for data retrieval