I am getting response from Rest as :
{"id":81236,"root":0,"child":3,"branch":0,"results":[{"message":"valid"},{"message":"valid"}}
I want to convert it into JsonObject using java 8.
I am trying JsonObject but i stucked with the POJO , because Json response may have some additional field sometimes.
So i want to be generic so that any valid json in form of ByteString can be easily converted to JSonObject.