Idiot-proofing of the json exporter.

Me being the idiot.