Fixed bug in loadjson. Variable "file" is a string.