set json error back to previous value so tests pas