adding json to the api