JSON.stringify err for debug statements