title: Jasper report with subreports loadet from JSON in java
body: <p>I'm loading this nested JSON from HTTP request and parsing it to report with multiple subreport so I can display all data. In JAspersoft studio everything work great when I make it using json file containing this structure, however when trying to fill it from JAVA im getting warning and none of subreports get data:</p>
  <pre><code>PM net.sf.jasperreports.engine.query.AbstractJsonQueryExecuter createDatasource
  WARNING: No JSON source was provided.
  </code></pre>
  <p>I have nested JSON like this:</p>
  <pre><code>    &quot;receiptId&quot;:&quot;O-6FF6640FF1624523B6640FF162E523AF&quot;,
      &quot;ico&quot;:&quot;35838949&quot;,
      &quot;cashRegisterCode&quot;:&quot;88820202626840039&quot;,
      &quot;issueDate&quot;:&quot;02.07.2022 20:06:57&quot;,
      &quot;createDate&quot;:&quot;02.07.2022 20:06:57&quot;,
      &quot;customerId&quot;:null,
      &quot;dic&quot;:&quot;2020262684&quot;,
      &quot;icDph&quot;:&quot;SK2020262684&quot;,
      &quot;invoiceNumber&quot;:null,
      &quot;okp&quot;:&quot;6822E8DC-E997DD0D-DD384721-E98AF90A-9C3DCA8C&quot;,
      &quot;paragon&quot;:false,
      &quot;paragonNumber&quot;:null,
      &quot;pkp&quot;:&quot;Y1yRcaaLrgMYCXwjJ1LlNwHyZbkZFlpT+TTM+6K+8poUolICKkPpR+6hhpqNYjWapzA+AAIA/AIdGEaf5xKxvRzqrTImQF0ifgV320C1NawGSkiWFcd4H4bEDGOncRcEWk7mx08W0sGWQ7KACIuVFMcIbiG+ttHdUATsLyOciddD6D++VB0SoN42X8RRFAbAQ/qewUzwN/jhi9JRCl2vWzK5iP2d7VFiEyaQ3kZ3uk37xfTQu9Cs2co28tWJas+p3PCL9Y5/YwLHCW5+Y9F6co/QLQRR0YN7CP7yksninoWzF+urJb03WZa27gGjXtprebfozUXkLc6QdRns6zGIjQ==&quot;,
      &quot;receiptNumber&quot;:752,
      &quot;type&quot;:&quot;PD&quot;,
      &quot;taxBaseBasic&quot;:10.9800,
      &quot;taxBaseReduced&quot;:0.0000,
      &quot;totalPrice&quot;:13.1800,
      &quot;freeTaxAmount&quot;:0.0000,
      &quot;vatAmountBasic&quot;:2.2000,
      &quot;vatAmountReduced&quot;:0.0000,
      &quot;vatRateBasic&quot;:20.0000,
      &quot;vatRateReduced&quot;:10.0000,
      &quot;items&quot;:[
          {&quot;name&quot;:&quot;LUKAS AKRYL FARBA \&quot;T&quot;,
          &quot;itemType&quot;:&quot;K&quot;,
          &quot;quantity&quot;:1.0000,
          &quot;vatRate&quot;:20.00,
          &quot;price&quot;:6.59},
          
          {&quot;name&quot;:&quot;LUKAS AKRYL FARBA   &quot;,
          &quot;itemType&quot;:&quot;K&quot;,&quot;quantity&quot;:1.0000,
          &quot;vatRate&quot;:20.00,
          &quot;price&quot;:6.59}
          ],
      &quot;organization&quot;:{
          &quot;buildingNumber&quot;:null,
          &quot;country&quot;:&quot;Slovensko&quot;,
          &quot;dic&quot;:&quot;2020262684&quot;,
          &quot;icDph&quot;:&quot;SK2020262684&quot;,
          &quot;ico&quot;:&quot;35838949&quot;,
          &quot;municipality&quot;:&quot;Bratislava - mestská časť Ružinov&quot;,
          &quot;name&quot;:&quot;HORNBACH - Baumarkt SK spol. s r.o.&quot;,
          &quot;postalCode&quot;:&quot;82104&quot;,
          &quot;propertyRegistrationNumber&quot;:&quot;9&quot;,
          &quot;streetName&quot;:&quot;Galvaniho&quot;,
          &quot;vatPayer&quot;:true
          },
      &quot;unit&quot;:{
          &quot;cashRegisterCode&quot;:&quot;88820202626840039&quot;,
          &quot;buildingNumber&quot;:null,
          &quot;country&quot;:&quot;Slovensko&quot;,
          &quot;municipality&quot;:&quot;Košice&quot;,
          &quot;postalCode&quot;:&quot;04011&quot;,
          &quot;propertyRegistrationNumber&quot;:&quot;22&quot;,
          &quot;streetName&quot;:&quot;Moldavská cesta&quot;,
          &quot;name&quot;:null,
          &quot;unitType&quot;:&quot;STANDARD&quot;
          },
      &quot;exemption&quot;:false
  }
  </code></pre>
  <p>master report:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!-- Created with Jaspersoft Studio version 6.19.1.final using JasperReports Library version 6.19.1-867c00bf88cd4d784d404379d6c05e1b419e8a4c  --&gt;
  &lt;jasperReport xmlns=&quot;http://jasperreports.sourceforge.net/jasperreports&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot; name=&quot;BlocekMaster&quot; pageWidth=&quot;226&quot; pageHeight=&quot;842&quot; columnWidth=&quot;186&quot; leftMargin=&quot;20&quot; rightMargin=&quot;20&quot; topMargin=&quot;20&quot; bottomMargin=&quot;20&quot; uuid=&quot;bf498b99-386e-42ef-99c8-2045acf3acb6&quot;&gt;
      &lt;property name=&quot;com.jaspersoft.studio.data.defaultdataadapter&quot; value=&quot;JSON.jrdax&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.pageWidth&quot; value=&quot;cm&quot;/&gt;
      &lt;style name=&quot;Table_TH&quot; mode=&quot;Opaque&quot; backcolor=&quot;#F0F8FF&quot;&gt;
          &lt;box&gt;
              &lt;pen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;topPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;leftPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;bottomPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;rightPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name=&quot;Table_CH&quot; mode=&quot;Opaque&quot; backcolor=&quot;#BFE1FF&quot;&gt;
          &lt;box&gt;
              &lt;pen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;topPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;leftPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;bottomPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;rightPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;style name=&quot;Table_TD&quot; mode=&quot;Opaque&quot; backcolor=&quot;#FFFFFF&quot;&gt;
          &lt;box&gt;
              &lt;pen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;topPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;leftPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;bottomPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
              &lt;rightPen lineWidth=&quot;0.5&quot; lineColor=&quot;#000000&quot;/&gt;
          &lt;/box&gt;
      &lt;/style&gt;
      &lt;parameter name=&quot;SUBREPORT_DIR&quot; class=&quot;java.lang.String&quot; isForPrompting=&quot;false&quot;/&gt;
      &lt;queryString language=&quot;json&quot;&gt;
          &lt;![CDATA[receipt]]&gt;
      &lt;/queryString&gt;
      &lt;field name=&quot;freeTaxAmount&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;freeTaxAmount&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[freeTaxAmount]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;totalPrice&quot; class=&quot;java.math.BigDecimal&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;totalPrice&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[totalPrice]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;vatRateReduced&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;vatRateReduced&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[vatRateReduced]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;exemption&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;exemption&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[exemption]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;type&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;type&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[type]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;vatRateBasic&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;vatRateBasic&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[vatRateBasic]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;paragon&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;paragon&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[paragon]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;taxBaseBasic&quot; class=&quot;java.math.BigDecimal&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;taxBaseBasic&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[taxBaseBasic]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;ico&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;ico&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[ico]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;pkp&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;pkp&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[pkp]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;okp&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;okp&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[okp]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;icDph&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;icDph&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[icDph]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;customerId&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;customerId&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[customerId]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;invoiceNumber&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;invoiceNumber&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[invoiceNumber]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;taxBaseReduced&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;taxBaseReduced&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[taxBaseReduced]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;issueDate&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;issueDate&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[issueDate]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;vatAmountReduced&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;vatAmountReduced&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[vatAmountReduced]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;receiptId&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;receiptId&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[receiptId]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;receiptNumber&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;receiptNumber&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[receiptNumber]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;createDate&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;createDate&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[createDate]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;cashRegisterCode&quot; class=&quot;java.lang.Long&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;cashRegisterCode&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[cashRegisterCode]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;paragonNumber&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;paragonNumber&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[paragonNumber]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;vatAmountBasic&quot; class=&quot;java.math.BigDecimal&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;vatAmountBasic&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[vatAmountBasic]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;dic&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;dic&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[dic]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;itemsName&quot; class=&quot;java.lang.Object&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;items.name&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[itemsName]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;title&gt;
          &lt;band height=&quot;37&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height=&quot;141&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;property name=&quot;com.jaspersoft.studio.layout&quot; value=&quot;com.jaspersoft.studio.editor.layout.FreeLayout&quot;/&gt;
              &lt;subreport&gt;
                  &lt;reportElement isPrintRepeatedValues=&quot;false&quot; x=&quot;0&quot; y=&quot;0&quot; width=&quot;186&quot; height=&quot;60&quot; uuid=&quot;067bb739-cd7f-460b-b766-20bdfb569665&quot;/&gt;
                  &lt;parametersMapExpression&gt;&lt;![CDATA[$P{REPORT_PARAMETERS_MAP}]]&gt;&lt;/parametersMapExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[&quot;c:\\Users\\Rastislav\\JaspersoftWorkspace\\VydavkovyDoklad\\BlocekOrganization.jasper&quot;]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
              &lt;subreport&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;60&quot; width=&quot;185&quot; height=&quot;20&quot; uuid=&quot;36001917-250a-4b58-8399-8b9b380b2808&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.height&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;parametersMapExpression&gt;&lt;![CDATA[$P{REPORT_PARAMETERS_MAP}]]&gt;&lt;/parametersMapExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[&quot;c:\\Users\\Rastislav\\JaspersoftWorkspace\\VydavkovyDoklad\\BlocekUnit.jasper&quot;]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;20&quot; y=&quot;80&quot; width=&quot;60&quot; height=&quot;20&quot; uuid=&quot;e33c8cdf-1fea-488c-9775-42d5547fd914&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{dic}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;20&quot; y=&quot;100&quot; width=&quot;60&quot; height=&quot;20&quot; uuid=&quot;da649d7f-a1d7-45bb-a9a9-f4e376be35dc&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ico}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;120&quot; y=&quot;80&quot; width=&quot;66&quot; height=&quot;20&quot; uuid=&quot;8010e7c9-154d-487b-be86-e67f3e078e9b&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{icDph}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;80&quot; width=&quot;20&quot; height=&quot;20&quot; uuid=&quot;05f35676-3cba-45d3-a422-7c892f5813de&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[DIč:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;100&quot; width=&quot;20&quot; height=&quot;20&quot; uuid=&quot;3eee3d1d-52e0-4499-ad6c-c5e9fb919d60&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[Ičo:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;80&quot; y=&quot;80&quot; width=&quot;40&quot; height=&quot;20&quot; uuid=&quot;04c8959f-5718-4c71-bb96-94728217bdab&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[IČ DPH:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;120&quot; width=&quot;100&quot; height=&quot;20&quot; uuid=&quot;62f10218-b278-4832-b6cc-f1e3169524ad&quot;/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                      &lt;bottomPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{createDate}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;150&quot; y=&quot;120&quot; width=&quot;36&quot; height=&quot;20&quot; uuid=&quot;55bcebe0-e88e-4101-86ec-cd587fba0db6&quot;/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                      &lt;bottomPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment=&quot;Right&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{receiptNumber}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;100&quot; y=&quot;120&quot; width=&quot;50&quot; height=&quot;20&quot; uuid=&quot;2c02b2de-6c26-4deb-9e5d-3c3868bc9c77&quot;/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                      &lt;bottomPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment=&quot;Right&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[č. bloku:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/pageHeader&gt;
      &lt;detail&gt;
          &lt;band height=&quot;90&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;property name=&quot;com.jaspersoft.studio.layout&quot; value=&quot;com.jaspersoft.studio.editor.layout.HorizontalRowLayout&quot;/&gt;
              &lt;subreport&gt;
                  &lt;reportElement isPrintRepeatedValues=&quot;false&quot; x=&quot;0&quot; y=&quot;0&quot; width=&quot;186&quot; height=&quot;90&quot; uuid=&quot;66bb5110-f039-4173-986e-1bd0289bc122&quot;/&gt;
                  &lt;parametersMapExpression&gt;&lt;![CDATA[$P{REPORT_PARAMETERS_MAP}]]&gt;&lt;/parametersMapExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[&quot;c:\\Users\\Rastislav\\JaspersoftWorkspace\\VydavkovyDoklad\\BlocekItems.jasper&quot;]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;summary&gt;
          &lt;band height=&quot;269&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;property name=&quot;com.jaspersoft.studio.layout&quot; value=&quot;com.jaspersoft.studio.editor.layout.FreeLayout&quot;/&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;0&quot; width=&quot;93&quot; height=&quot;20&quot; uuid=&quot;0c8368f5-5fb4-40ad-b0e0-f35c99b77891&quot;/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                      &lt;bottomPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[Celková cena]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;93&quot; y=&quot;0&quot; width=&quot;93&quot; height=&quot;20&quot; uuid=&quot;83d9395f-3daf-48c0-a917-123839303cae&quot;/&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                      &lt;bottomPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement textAlignment=&quot;Right&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{totalPrice}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;50&quot; y=&quot;40&quot; width=&quot;70&quot; height=&quot;20&quot; isRemoveLineWhenBlank=&quot;true&quot; uuid=&quot;dd57123a-272f-4e1c-b95a-34a0e1792a68&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.rightIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Right&quot;&gt;
                      &lt;paragraph rightIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{taxBaseBasic}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;50&quot; y=&quot;60&quot; width=&quot;70&quot; height=&quot;20&quot; isRemoveLineWhenBlank=&quot;true&quot; uuid=&quot;b62217da-ab63-4b70-a835-85a38816d9cf&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.rightIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Right&quot;&gt;
                      &lt;paragraph rightIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{taxBaseReduced}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;120&quot; y=&quot;40&quot; width=&quot;66&quot; height=&quot;20&quot; isRemoveLineWhenBlank=&quot;true&quot; uuid=&quot;15925546-74b9-4b8a-a97f-c5f09a46297e&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.rightIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Right&quot;&gt;
                      &lt;paragraph rightIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{vatAmountBasic}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;120&quot; y=&quot;60&quot; width=&quot;66&quot; height=&quot;20&quot; isRemoveLineWhenBlank=&quot;true&quot; uuid=&quot;4cbd792a-b549-490b-9d5d-ee66420008da&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.rightIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Right&quot;&gt;
                      &lt;paragraph rightIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{vatAmountReduced}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;50&quot; y=&quot;80&quot; width=&quot;70&quot; height=&quot;20&quot; isRemoveLineWhenBlank=&quot;true&quot; uuid=&quot;1fcf6b04-e892-40b4-80d0-f96a75f7da6b&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.rightIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Right&quot;&gt;
                      &lt;paragraph rightIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{freeTaxAmount}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;20&quot; width=&quot;50&quot; height=&quot;20&quot; uuid=&quot;da90ee1d-be04-4c35-8b45-856e86efaf12&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[Sadzba:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;50&quot; y=&quot;20&quot; width=&quot;70&quot; height=&quot;20&quot; uuid=&quot;2a7525e5-dd4a-425e-ae79-0946c31bf7e6&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Right&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[Základ:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;120&quot; y=&quot;20&quot; width=&quot;66&quot; height=&quot;20&quot; uuid=&quot;68c4120c-5e31-43c3-9419-4c60c1e92454&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Right&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[DPH:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;40&quot; width=&quot;50&quot; height=&quot;20&quot; uuid=&quot;00ac1cc4-bdc8-4bd1-9ace-214fed4efe13&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.leftIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Left&quot;&gt;
                      &lt;paragraph leftIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[20%]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;60&quot; width=&quot;50&quot; height=&quot;20&quot; uuid=&quot;091cec9e-61e3-4655-b648-2aadd4faf2d8&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Left&quot;&gt;
                      &lt;paragraph leftIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[10%]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;80&quot; width=&quot;50&quot; height=&quot;20&quot; uuid=&quot;269fc2fa-824c-43e1-9b3e-283e349cfea5&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Left&quot;&gt;
                      &lt;paragraph leftIndent=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[  0%]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;textField textAdjust=&quot;StretchHeight&quot;&gt;
                  &lt;reportElement x=&quot;30&quot; y=&quot;140&quot; width=&quot;156&quot; height=&quot;28&quot; uuid=&quot;d2abcbd6-4886-40e0-aaf1-d1f6084fcbac&quot;/&gt;
                  &lt;textElement verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{receiptId}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField textAdjust=&quot;StretchHeight&quot;&gt;
                  &lt;reportElement x=&quot;30&quot; y=&quot;108&quot; width=&quot;156&quot; height=&quot;32&quot; uuid=&quot;2cbffbba-78fc-4a78-9063-0d4502c25599&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.spacingBefore&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement verticalAlignment=&quot;Top&quot;&gt;
                      &lt;paragraph spacingBefore=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{okp}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;componentElement&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;168&quot; width=&quot;186&quot; height=&quot;100&quot; uuid=&quot;74c4254c-bb56-45c2-9d38-86d6efca9929&quot;/&gt;
                  &lt;jr:QRCode xmlns:jr=&quot;http://jasperreports.sourceforge.net/jasperreports/components&quot; xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd&quot;&gt;
                      &lt;jr:codeExpression&gt;&lt;![CDATA[$F{receiptId}]]&gt;&lt;/jr:codeExpression&gt;
                  &lt;/jr:QRCode&gt;
              &lt;/componentElement&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;108&quot; width=&quot;30&quot; height=&quot;31&quot; uuid=&quot;d721c096-8a9c-411c-b50a-2fb0fcb61389&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.spacingBefore&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;box&gt;
                      &lt;topPen lineWidth=&quot;1.0&quot; lineStyle=&quot;Dashed&quot;/&gt;
                  &lt;/box&gt;
                  &lt;textElement verticalAlignment=&quot;Top&quot;&gt;
                      &lt;paragraph spacingBefore=&quot;3&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;text&gt;&lt;![CDATA[OKP:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;140&quot; width=&quot;30&quot; height=&quot;28&quot; uuid=&quot;2485d022-d78d-4ba9-8106-e23fca5b4d0a&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[UID:]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  <p>one of subreports :</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!-- Created with Jaspersoft Studio version 6.19.1.final using JasperReports Library version 6.19.1-867c00bf88cd4d784d404379d6c05e1b419e8a4c  --&gt;
  &lt;jasperReport xmlns=&quot;http://jasperreports.sourceforge.net/jasperreports&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot; name=&quot;Blocekorganization&quot; pageWidth=&quot;186&quot; pageHeight=&quot;70&quot; columnWidth=&quot;186&quot; leftMargin=&quot;0&quot; rightMargin=&quot;0&quot; topMargin=&quot;0&quot; bottomMargin=&quot;0&quot; uuid=&quot;3e3bdb08-1685-44c2-a19f-480aef430af4&quot;&gt;
      &lt;property name=&quot;com.jaspersoft.studio.data.defaultdataadapter&quot; value=&quot;JSON.jrdax&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.pageHeight&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.pageWidth&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.topMargin&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.bottomMargin&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.leftMargin&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.rightMargin&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.columnWidth&quot; value=&quot;pixel&quot;/&gt;
      &lt;property name=&quot;com.jaspersoft.studio.unit.columnSpacing&quot; value=&quot;pixel&quot;/&gt;
      &lt;queryString language=&quot;json&quot;&gt;
          &lt;![CDATA[receipt.organization]]&gt;
      &lt;/queryString&gt;
      &lt;field name=&quot;country&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;country&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[country]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;streetName&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;streetName&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[streetName]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;vatPayer&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;vatPayer&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[vatPayer]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;postalCode&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;postalCode&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[postalCode]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;municipality&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;municipality&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[municipality]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;name&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;name&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[name]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;buildingNumber&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;buildingNumber&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[buildingNumber]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;propertyRegistrationNumber&quot; class=&quot;java.lang.Integer&quot;&gt;
          &lt;property name=&quot;net.sf.jasperreports.json.field.expression&quot; value=&quot;propertyRegistrationNumber&quot;/&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[propertyRegistrationNumber]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;detail&gt;
          &lt;band height=&quot;60&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;property name=&quot;com.jaspersoft.studio.layout&quot; value=&quot;com.jaspersoft.studio.editor.layout.FreeLayout&quot;/&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;0&quot; width=&quot;186&quot; height=&quot;20&quot; uuid=&quot;ee1bf49e-9d9a-486e-bfa3-ed01a24f4b47&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Center&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{name}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;20&quot; width=&quot;100&quot; height=&quot;20&quot; uuid=&quot;961b4d56-62ab-4031-a1db-8d689748a60c&quot;&gt;
                      &lt;property name=&quot;com.jaspersoft.studio.unit.rightIndent&quot; value=&quot;px&quot;/&gt;
                  &lt;/reportElement&gt;
                  &lt;textElement textAlignment=&quot;Right&quot; verticalAlignment=&quot;Middle&quot; markup=&quot;none&quot;&gt;
                      &lt;paragraph rightIndent=&quot;15&quot;/&gt;
                  &lt;/textElement&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{streetName}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;100&quot; y=&quot;20&quot; width=&quot;20&quot; height=&quot;20&quot; uuid=&quot;90e90ff6-7c46-4ef8-bd68-6772f58f3f5e&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Left&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{propertyRegistrationNumber}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;120&quot; y=&quot;20&quot; width=&quot;35&quot; height=&quot;20&quot; uuid=&quot;3a4c0f1f-c9da-48de-9b42-ffa0921bc418&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Left&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{postalCode}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;0&quot; y=&quot;40&quot; width=&quot;186&quot; height=&quot;20&quot; uuid=&quot;fa8f7ef7-5a1c-4907-98fa-a232f4dccf86&quot;/&gt;
                  &lt;textElement textAlignment=&quot;Center&quot; verticalAlignment=&quot;Middle&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{municipality}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  <p>java:</p>
  <pre><code>try {
      /* Output file location to create report in pdf form */
      String outputFile = &quot;d:\\JAVA PROGRAMOVANIE\\0 Godis RR\\main\\GodisMaven\\target\\reports\\&quot; + &quot;JasperReportExample.pdf&quot;;
      /* Convert List to JRBeanCollectionDataSource */
      InputStream stream = new ByteArrayInputStream(myObject1.getJSONObject(&quot;receipt&quot;).toString().getBytes(&quot;UTF-8&quot;));
      JRDataSource jsonDataSource = new JsonDataSource(stream);
      JasperDesign jasperDesign = JRXmlLoader.load(new File(&quot;c:\\Users\\Rastislav\\JaspersoftWorkspace\\VydavkovyDoklad\\BlocekMaster.jrxml&quot;));
  
      /*compiling jrxml with help of JasperReport class*/
      JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
  
      /* Using jasperReport object to generate PDF */
      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, jsonDataSource);
  
      /*call jasper engine to display report in jasperviewer window*/
      JasperViewer.viewReport(jasperPrint);
  
  
      /* outputStream to create PDF */
      OutputStream outputStream = new FileOutputStream(new File(outputFile));
  
  
      /* Write content to PDF file */
      JasperExportManager.exportReportToPdfStream(jasperPrint, outputStream);
      outputStream.close();
  
      System.out.println(&quot;File Generated&quot;);
  } catch (JRException | FileNotFoundException ex) {
      Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
  } catch (UnsupportedEncodingException ex) {
      Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
  } catch (IOException ex) {
      Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
  }
  </code></pre>
  <p>any help will be  apritiated</p>