Moved json calls to within function [ci skip]
Moved json calls to within function [ci skip]

hnjamba/onaclone,qlands/onadata,makinacorpus/formhub,ehealthafrica-ci/onadata,SEL-Columbia/formhub,makinacorpus/formhub,GeoODK/onadata,qlands/onadata,sounay/flaminggo-test,wesley1001/formhub,smn/onadata,kobotoolbox/kobocat,ehealthafrica-ci/onadata,SEL-Columbia/formhub,eHealthAfrica/onadata,eHealthAfrica/formhub,sounay/flaminggo-test,awemulya/fieldsight-kobocat,hnjamba/onaclone,GeoODK/formhub,awemulya/fieldsight-kobocat,SEL-Columbia/formhub,jomolinare/kobocat,piqoni/onadata,makinacorpus/formhub,jomolinare/kobocat,awemulya/fieldsight-kobocat,ehealthafrica-ci/formhub,smn/onadata,ehealthafrica-ci/formhub,ultimateprogramer/formhub,eHealthAfrica/onadata,mainakibui/kobocat,spatialdev/onadata,qlands/onadata,GeoODK/onadata,kobotoolbox/kobocat,makinacorpus/formhub,smn/onadata,kobotoolbox/kobocat,wesley1001/formhub,piqoni/onadata,sounay/flaminggo-test,smn/onadata,mainakibui/kobocat,piqoni/onadata,GeoODK/onadata,GeoODK/formhub,SEL-Columbia/formhub,ehealthafrica-ci/onadata,wesley1001/formhub,eHealthAfrica/onadata,eHealthAfrica/formhub,jomolinare/kobocat,mainakibui/kobocat,spatialdev/onadata,eHealthAfrica/formhub,wesley1001/formhub,kobotoolbox/kobocat,ehealthafrica-ci/formhub,jomolinare/kobocat,ehealthafrica-ci/onadata,mainakibui/kobocat,spatialdev/onadata,sounay/flaminggo-test,hnjamba/onaclone,hnjamba/onaclone,awemulya/fieldsight-kobocat,ultimateprogramer/formhub,spatialdev/onadata,ultimateprogramer/formhub,GeoODK/onadata,eHealthAfrica/formhub,piqoni/onadata,qlands/onadata,ehealthafrica-ci/formhub,ultimateprogramer/formhub,GeoODK/formhub