I think we can just pass the bytes directly to the json generator it will do the right thing with it.