Small bug fix to JSON.