Use json output, rather than converting to json with scripting commands.