small improvement ot json reader