[DAEMON-154] JSON Strings should be wrapped in double quotes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2017-11-16T20:37:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Appc Daemon 1.0.0 |
Components | appcd |
Labels | n/a |
Reporter | Kondal Kolipaka |
Assignee | Chris Barber |
Created | 2017-11-16T18:06:14.000+0000 |
Updated | 2017-11-16T20:37:46.000+0000 |
Description
json strings are coming in single quotes but it should be in double quotes. *To reproduce*Run appc appcd exec /system-info/1.x/info --json --no-banner
Valdiate the output here https://jsonformatter.curiousconcept.com
Studio json parser validation is failing due to this.Comments
- Chris Barber 2017-11-16
Excellent find.
Note that
appcd exec
will ALWAYS return JSON unless the exit code is non-zero. - Chris Barber 2017-11-16
Also note that the
\-\-json
and\-\-no\-banner
have no effect as far as appcd is concerned. Pass them in if you need to keep Appc CLI happy.