Don't let the JSON outputter fail because of unsupported types. Refs saltstack/salt-cloud#614. Fixes #5446.