JSON Problems

Hello,
it seems that the JSON Parser you use has some issues. It cuts my escaped text but validators reported valid JSON. Any idea?

Hi,

Webix JSON parser just applies Javascript native JSON.parse(string). So please make sure that your text can be processed with this function.

Could you please share your JSON string?

[{“id_case”:“589”,“body_case”:"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=“http:\/\/schemas.xmlsoap.org\/soap\/envelope\/” xmlns:xsi=“http:\/\/www.w3.org\/2001\/XMLSchema-instance” xmlns:tns=“http:\/\/kd.blum.com\/api?ws=1”>soap:Bodytns:initiateCorpusMR_Ruleset_Placeholder<\/ruleset><\/initiateCorpus><\/tns:initiateCorpus><\/soap:Body><\/soap:Envelope>"},{“id_case”:“590”,“body_case”:"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=“http:\/\/schemas.xmlsoap.org\/soap\/envelope\/” xmlns:xsi=“http:\/\/www.w3.org\/2001\/XMLSchema-instance” xmlns:tns=“http:\/\/136.243.36.137:8082\/api?ws=1”>soap:Bodytns:addFrontMR17090144d5a674a762c4a1c7f8e2afa838cb0559ad1fe8dda2b<\/id><\/corpus>1.1.1<\/containerNumber>front<\/position><\/addFront><\/tns:addFront><\/soap:Body><\/soap:Envelope>"},{“id_case”:“591”,“body_case”:"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=“http:\/\/schemas.xmlsoap.org\/soap\/envelope\/” xmlns:xsi=“http:\/\/www.w3.org\/2001\/XMLSchema-instance” xmlns:tns=“http:\/\/136.243.36.137:8082\/api?ws=1”>soap:Bodytns:getCorpusMR17090144d5a674a762c4a1c7f8e2afa838cb0559ad1fe8dda2b<\/corpus><\/getCorpus><\/tns:getCorpus><\/soap:Body><\/soap:Envelope>"},{“id_case”:“592”,“body_case”:"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=“http:\/\/schemas.xmlsoap.org\/soap\/envelope\/” xmlns:xsi=“http:\/\/www.w3.org\/2001\/XMLSchema-instance” xmlns:tns=“http:\/\/136.243.36.137:8082\/api?ws=1”>soap:Bodytns:alterMultipleCorpusParameterMR17090144d5a674a762c4a1c7f8e2afa838cb0559ad1fe8dda2b<\/corpus>CorpusTopPanel_space_above<\/key>-1<\/value>Grundeinstellungen<\/type><\/items><\/parameterValues><\/alterMultipleCorpusParameterById><\/tns:alterMultipleCorpusParameter><\/soap:Body><\/soap:Envelope>"},{“id_case”:“593”,“body_case”:"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=“http:\/\/schemas.xmlsoap.org\/soap\/envelope\/” xmlns:xsi=“http:\/\/www.w3.org\/2001\/XMLSchema-instance” xmlns:tns=“http:\/\/136.243.36.137:8082\/api?ws=1”>soap:Bodytns:getCorpusMR17090144d5a674a762c4a1c7f8e2afa838cb0559ad1fe8dda2b<\/corpus><\/getCorpus><\/tns:getCorpus><\/soap:Body><\/soap:Envelope>"}]

The web controls as sample show just “MR_Ruleset_Placeholder” and not the full soap query. This is a big problem. As I wrote, the JSON is complete valid.

Finally the issue is that you handle all data this same way. The json contain XML data and you show this data like every other data so the browser will handle it as nodes and do not show it. But with inspect you can see the XML data.
What I do not understand is why

 is not working with your controls. I have to wrap it to a textarea to avoid handle like XML data and not like text.
Very amazing issue.

applying escape template is enough in your case.

{
    id:"body_case", header:"Text", width:400,
    template: "#!body_case#" //exclamation mark is what you need
}

https://webix.com/snippet/156b9773

Many thanks for your hint.