get data from grid not only json

Finally I get data from grid not only json. It is too hard for me to
transfer json to string by java. I am not a Java master.