The problem seems to be the quotes, this should work: export APP_DATA_JSON='{ "app": { "name": "Sample Application", "id": "com.maidsafe.sample", "version": "0.0.1", "vendor": "MaidSafe" }, "permissions": [ "SAFE_DRIVE_ACCESS" ]}'
That worked. Thank you My laziness was the problem. Indeed, when creating objects in JavaScript, quotes on property names can be omitted, but JSON standard requires them.
Anyway, the error message could be more connected to the issue.