Use helper to determine json