Tag JSON errors with a type