How can I get SearchResponse from json

hi, I have got json (SearchResponse.toString()) from another server.

I need transfrom the json to SearchResponse.

I use SearchResponse.readSearchResponse(StreamInput in), but it throw java.io.EOFException.

so, How can I do ? anyone can help me ?