remove isJSON function