got a view to work with json object in script file rather than using an external reference
must figure out how to write a json object to a file in local dir