Here is a chunk of response from one of the google-speech-api on android. Note the JSON array in the 'hypothesis' field...
{"status":0,"id":"a4ca9654c6cc684dc3279cd1aaa00cc7-1","hypotheses":[{"utterance":"map of the state of California","confidence":0.87869847}]}
You need to know the details of the api's response body you are using and , if necessary , how to parse JSON arrays in the response like the 'hypothesis' field above.
If it is an array as i suspect it is , then you just need a little parsing of the array to get the proper response without the duplication issue.