Cleaning that dirty JSON