Parameter what Ignore specific character

Hi,

I made some questions here to make a report using the json, the report are running on the software, but, the framework I use in php, Yii2, he use the chrmorandi to comunicate to the jrxml file, he use the escapeshellcmd, and put two inverse bar " \ \" every time when json crack the line, and I have a error in jasper, because the parameter not expected the other one " \ ", if I send only one it works, but the framework everytime send me two, and I dont have nothing to do about this, anyone knows how I make the parameter ignore that second caractere? 

This is the parameters I use:

<parameter name="jsonString" class="java.lang.String"/>
<parameter name="JSON_INPUT_STREAM" class="java.io.InputStream">
   <defaultValueExpression><![CDATA[new java.io.ByteArrayInputStream($P{jsonString}.getBytes("UTF-8"))]]></defaultValueExpression>
</parameter>


This is the other question I do:

https://community.jaspersoft.com/questions/1108701/printed-json-values

Thanks!

Gabriel Nadoroski

gabriel.nadoroski's picture
Joined: Oct 1 2018 - 2:05pm
Last seen: 4 years 9 months ago

0 Answers:

No answers yet
Feedback