Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-154] JSON Strings should be wrapped in double quotes

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionFixed
Resolution Date2017-11-16T20:37:46.000+0000
Affected Version/sn/a
Fix Version/sAppc Daemon 1.0.0
Componentsappcd
Labelsn/a
ReporterKondal Kolipaka
AssigneeChris Barber
Created2017-11-16T18:06:14.000+0000
Updated2017-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

  1. Chris Barber 2017-11-16

    Excellent find. Note that appcd exec will ALWAYS return JSON unless the exit code is non-zero.
  2. 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.

JSON Source