fix memory leak in case of json parser errors

use json reader state macros everywhere

(0) -300 -100 -30 -10 -2 +2 +10 +30 +100 tip

mercurial