Formatted api returns into json object