updated main code to output object from json and var, added object property to json flow