title: Filling reports from json using JasperReports
body: <p>I'm beginner with JasperReports ( first try ) so,
  I set up my netbeans, and my first try using data from database was successful. But now I just want to create my report from json data using Jasper Reports in Netbeans And I think it's not like getting data from Database.</p>
  
  <p>By the way I tried to edit my xml file and add this : </p>
  
  <pre><code>&lt;textField&gt;
              &lt;reportElement x="0" y="31" width="555" height="20" uuid="9678a129-61e8-4034-ab8e-739ee5723c87"/&gt;
              &lt;textElement textAlignment="Right"&gt;
                  &lt;font size="12" isBold="true"/&gt;
              &lt;/textElement&gt;
              &lt;textFieldExpression&gt;&lt;![CDATA[$F{nom}]]&gt;&lt;/textFieldExpression&gt;
          &lt;/textField&gt;
  </code></pre>
  
  <p>But it gives me null in report.</p>
  
  <p>Here is what I did in java side :</p>
  
  <pre><code>Map parametersMap = new HashMap();
  parametersMap.put("name", json.getString("Name"));
  parametersMap.put("start", json.getString("Start"));
  parametersMap.put("end", json.getString("end"));
  String report = "C:\\My\\Path\\toReport\\report1.jrxml";
  JasperReport Jasp = JasperCompileManager.compileReport(report);
  JasperPrint JASP_PRINT = JasperFillManager.fillReport(Jasp,parametersMap);
  JasperViewer.viewReport(JASP_PRINT);
  </code></pre>
  
  <p>UPDATED:</p>
  
  <p>Here is my Java code</p>
  
  <pre><code>public void start(Future&lt;Void&gt; startFuture){
  
   String fileJSON = "C:\\Users\\PathToMyFile\\data.txt";
       String file =  "/Test1/:name";
      Router router = Router.router(vertx);
         router.route(file).handler(routingContext -&gt; {
          HttpServerResponse response = routingContext.response();
          response.setChunked(true);
          routingContext.vertx().setTimer(1000, tid -&gt; routingContext.response().end());
      });
      vertx.createHttpServer()
              .requestHandler(router::accept)
              .listen(8089, "localhost", res -&gt; {
                  if (res.succeeded())
                      startFuture.complete();
                  else
                      startFuture.fail(res.cause());
              });
  
      vertx.fileSystem().readFile(fileJSON, (AsyncResult&lt;Buffer&gt; result) -&gt; {
          if (result.succeeded()) {                
                                  JsonObject json = result.result().toJsonObject();
                               try{
                                  Map parametersMap = new HashMap();  
                                  parametersMap.put("name",json.getString("name"));
                                  parametersMap.put("start",json.getString("start"));
                                  parametersMap.put("end",json.getString("end"));
                                  String report = "C:\\Users\\pathToMyPackage\\report1.jrxml";
                                  JasperReport Jasp = JasperCompileManager.compileReport(report);
                                  JasperPrint JASP_PRINT = JasperFillManager.fillReport(Jasp,parametersMap);
                                  JasperViewer.viewReport(JASP_PRINT);   
  </code></pre>
  
  <p>And for my JRXML file : </p>
  
  <pre><code>&lt;property name="ireport.zoom" value="1.0"/&gt;
  &lt;property name="ireport.x" value="0"/&gt;
  &lt;property name="ireport.y" value="0"/&gt;
  &lt;queryString language="json"&gt;
      &lt;![CDATA[]]&gt;
  &lt;/queryString&gt;
  &lt;field name="nom" class="java.lang.String"&gt;
      &lt;fieldDescription&gt;&lt;![CDATA[name]]&gt;&lt;/fieldDescription&gt;
  &lt;/field&gt;
  &lt;field name="dateDebut" class="java.lang.String"&gt;
      &lt;fieldDescription&gt;&lt;![CDATA[start]]&gt;&lt;/fieldDescription&gt;
  &lt;/field&gt;
  &lt;background&gt;
      &lt;band splitType="Stretch"/&gt;
  &lt;/background&gt;
  &lt;detail&gt;
      &lt;band height="125" splitType="Stretch"&gt;
          &lt;textField&gt;
              &lt;reportElement x="100" y="0" width="100" height="30" uuid="02b279da-3795-4655-8571-5a36a3ef378c"/&gt;
              &lt;textFieldExpression&gt;&lt;![CDATA[$F{name}]]&gt;&lt;/textFieldExpression&gt;
          &lt;/textField&gt;
          &lt;staticText&gt;
              &lt;reportElement x="0" y="0" width="100" height="30" uuid="671e61ad-8d8f-48cb-969f-78c05a516398"/&gt;
              &lt;text&gt;&lt;![CDATA[name]]&gt;&lt;/text&gt;
          &lt;/staticText&gt;
          &lt;textField&gt;
              &lt;reportElement x="100" y="30" width="100" height="30" uuid="9d53f46f-a252-48b3-9213-8c3092c29f49"/&gt;
              &lt;textFieldExpression&gt;&lt;![CDATA[$F{start}]]&gt;&lt;/textFieldExpression&gt;
          &lt;/textField&gt;
          &lt;staticText&gt;
              &lt;reportElement x="0" y="30" width="100" height="30" uuid="3b49affb-685a-4df2-a872-c0e6fdcab94b"/&gt;
              &lt;text&gt;&lt;![CDATA[start]]&gt;&lt;/text&gt;
          &lt;/staticText&gt;
      &lt;/band&gt;
  &lt;/detail&gt;
  </code></pre>
  
  <p>And my JSON file : </p>
  
  <pre><code>{
  "Name": "Test",
  "Start": "16-06-2015",
  "End":"16-06-2019"
   }
  </code></pre>