Here, i am stuck with a strange issue and am really clue less on how to solve it..
My program is in Go language.
I am receiving one service response which is in JSON format. I have compatible struct defined in my program. After receiving the response, i am un-marshaling that response to a struct object.
While doing this work, everything seems to be working fine except one issue. While i am checking that object, there is one string member which is getting value from JSON but it is getting partial value... For example,
Response string : "http://xxxx.xxxxxxxx.com/aaaaaaaaaa/aaaaaa/aaaaaaa/Thumbnail/16/_12830016.jpg"
Parsed string param value (I mean un-marshaled value : "http://xxxx.xxxxxxxx.com/aaaaaaaaaa/aaaaaa/aaaaaaa/Thumbnai"
I am just doing simple un-marshal as shown below.
body, err := ioutil.ReadAll(res.Body)
err = json.Unmarshal(body, &obj)
can anyone help me with this?