-e 'versions.myapp="0.1.2"' vs -e '{ "versions": { "myapp": "0.1.2"} }' => Rundeck job import, ":" -> yaml: mapping values are not allowed here

Is there any way to pass an extra_vars in a form of dict, not json?
Like this:
-e ‘versions.myapp=“0.1.2”’
not like that:
-e ‘{ “versions”: { “myapp”: “0.1.2”} }’

Reason - while importing jobs into rundeck it does complain about

Error: Failed request to load jobs: Jobs Document was invalid for format yaml: mapping values are not allowed here
-e '{“versions”: {"promo

^

(or - can some escaping in rundeck while importing yaml files)

Ok - I made it work in rundeck import

http://symfony.com/doc/current/components/yaml/yaml_format.html
“Mappings use a colon followed by a space (: ) to mark each key/value pair:”

So I did some nasty change, removing the space in the JSON - it does not look well, but it works:
-e ‘{ “versions”: { “myapp”: “0.1.2”} }’
-e ‘{ “versions”:{ “myapp”:“0.1.2”} }’

The initial question is still open, if You would feel like finding a solution.

W dniu piątek, 18 grudnia 2015 12:47:18 UTC+1 użytkownik sirkubax napisał:

I was to happy,
it does import to rundeck, but then the commands (that works in shell), when executed via rundec, looses double-quotes, and a JSON fails to create the dict *(*Expecting property name enclosed in double quotes)
https://groups.google.com/forum/#!topic/rundeck-discuss/NWQ7Y6sHq60

W dniu piątek, 18 grudnia 2015 12:59:44 UTC+1 użytkownik sirkubax napisał: