I couldn't import anything because of empty lines before the first { of the json code. I edited base.batch.inc to remove those empty characters and it worked :
$data = json_decode(substr($result->data, strpos($result->data, '{')));
trim() function did not work.