public class JsonSimpleValueParseMode
extends java.lang.Object
Examples:
Shows how to use JSON as a data source (string).
Document doc = new Document(getMyDir() + "Reporting engine template - JSON data destination (Java).docx");
JsonDataLoadOptions options = new JsonDataLoadOptions();
{
options.setExactDateTimeParseFormats(Arrays.asList(new String[]{"MM/dd/yyyy", "MM.d.yy", "MM d yy"}));
}
JsonDataSource dataSource = new JsonDataSource(getMyDir() + "List of people.json", options);
buildReport(doc, dataSource, "persons");
doc.save(getArtifactsDir() + "ReportingEngine.JsonDataString.docx");
| Modifier and Type | Field and Description |
|---|---|
static int |
length |
static int |
LOOSE
Specifies the mode where types of JSON simple values are determined upon parsing of their string representations.
|
static int |
STRICT
Specifies the mode where types of JSON simple values are determined from JSON notation itself.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String jsonSimpleValueParseModeName) |
static java.lang.String |
getName(int jsonSimpleValueParseMode) |
static int[] |
getValues() |
static java.lang.String |
toString(int jsonSimpleValueParseMode) |
public static int LOOSE
public static int STRICT
public static int length