Count json dump errors and allow checking