added recovery for json having invalid prefix characters