Update API return format
Correct encoding of response
Fixed client to use new server format