Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit 7c067cd

Browse files
authored
Merge pull request #539 from grtjn/494-xml-to-json
Fixed #494: made xml 2 json code more generic
2 parents 625d756 + 1300aba commit 7c067cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/templates/ui/app/detail/detail.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
} else if (contentType.lastIndexOf('application/xml', 0) === 0) {
3030
ctrl.xml = vkbeautify.xml(doc.data);
3131
/*jshint camelcase: false */
32-
ctrl.json = x2js.xml_str2json(doc.data).xml;
32+
ctrl.json = x2js.xml_str2json(doc.data);
3333
ctrl.type = 'xml';
3434
/* jscs: enable */
3535
} else if (contentType.lastIndexOf('text/plain', 0) === 0) {

app/themes/map/ui/app/detail/detail.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
} else if (contentType.lastIndexOf('application/xml', 0) === 0) {
2828
ctrl.xml = vkbeautify.xml(doc.data);
2929
/*jshint camelcase: false */
30-
ctrl.json = x2js.xml_str2json(doc.data).xml;
30+
ctrl.json = x2js.xml_str2json(doc.data);
3131
ctrl.type = 'xml';
3232
/* jscs: enable */
3333
} else if (contentType.lastIndexOf('text/plain', 0) === 0) {

0 commit comments

Comments
 (0)