script now outputs usable json