Fixed bug which caused JSON to be imported incorrectly.