Switched JSON fucntions.