chameleond: update newly-added api response to be compatible with go

Current api returns a xmlrpc array containing str and dict, which has
mixed type and not compatible with Tast xmlrpc package.

An intuitive way is to disjoin the dict and pass it as string. Based
on crrev/c/2940794, we can also return a map of string to string
alternatively, which is a cleaner implementation.

See more at crbug.com/1201727

BUG=b:271956970
TEST=locally tested with ./client/test_server.py

p.Plug(8)
p.StartCapturingAudio(8, True)
resp = p.StopCapturingAudioAndGetToken(8)
content2 = p.GetFileFromChameleon(resp['token'])

Change-Id: I34b5c6c40edf84aad4373d41f9e35c938de9b983
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/chameleon/+/4336497
Reviewed-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Commit-Queue: YJ Lee <yunjunlee@chromium.org>
Tested-by: YJ Lee <yunjunlee@chromium.org>
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>
2 files changed