diff --git a/lib/commands/source.js b/lib/commands/source.js index bae6aeea6..a88957108 100644 --- a/lib/commands/source.js +++ b/lib/commands/source.js @@ -20,7 +20,8 @@ const commands = { } = await this.settings.getSettings(); const hasExcludedAttributes = _.isString(excludedAttributes) && !_.isEmpty(excludedAttributes); if (useNewJSONSource) { - return await this.mobileGetSource('newJson'); + const srcTree = await this.mobileGetSource('newJson'); + return getSourceXml(getTreeForXML(srcTree)); } else if (useJSONSource) { const srcTree = await this.mobileGetSource('json', hasExcludedAttributes ? excludedAttributes : undefined);