Use tell() in stead of stream->tellg() for JsonIn, while i'm at it.