I changed the file name to dl.json and getting the same error. its picking first character in the json file i.e. db.collectionName.remove({resource:“xxx”,“channel.ItemId”:“yyy”}, true);
If i modify the data in json file with the dbname ‘test’ over db like below, i am getting different error.
test.collectionName.remove({resource:“xxx”,“channel.ItemId”:“yyy”}, true);
Error:
Failed: error processing document #1: invalid character ‘e’ in literal true (expecting ‘r’)
If i modify the data in json file just as an import files with only data with out any commands as we are using --mode=delete as like below, i am getting different error.
{resource:“xxx”,“channel.ItemId”:“yyy”}
Error: Failed: invalid JSON input