Add jsonEOF, jsonEOF', and make the decode* functions use jsonEOF rather than json parser