Modified JSON parsing from 'evel' to JSON.parse with some cleaning.