I\'m using Jasper Reports to build a simple report pdf. I have a JSON file that looks like this:
{\"employees\": [
{\"firstName\" : \"John\", \"lastName\
If you pass your json string as InputStream then it will works.
String reportContents = "{}" //your json
InputStream is = new ByteArrayInputStream(reportContent.getBytes());
Map params = new HashMap();
params.put(JsonQueryExecuterFactory.JSON_INPUT_STREAM, is);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params);