Bug fixed for extracting the json from bytebuffer.