Move json support check to class level