New implementation of the JSON reader.