Fix use of json_decode() so arrays are passed to import_file().

When using the `import' command it is necessary to decode JSON objects
from the input file into associative arrays as this is the format
expected by the importer.