Make JSON parsing stricter

now complains about all sorts of pedantic things