Move json print methods into if statement
Move json print methods into if statement

CenterForOpenScience/scrapi,CenterForOpenScience/scrapi,ostwald/scrapi,felliott/scrapi,erinspace/scrapi,erinspace/scrapi,alexgarciac/scrapi,mehanig/scrapi,jeffreyliu3230/scrapi,felliott/scrapi,mehanig/scrapi,fabianvf/scrapi,icereval/scrapi,fabianvf/scrapi