/
JSON Examples
JSON Examples
These are, admittedly, simple examples. For more in-depth examples, see the "examples" subdirectory of our open source offering.
JSON Examples:
Char Data Example
{ "text": "", "formats": [{"screen":
{ "record format name": "" },
"items": [
{ "id": "TextBox1",
"field type": "textbox",
"css class": "input",
"value": {
"fieldName": "Field0001",
"dataLength": "10",
"trimLeading": "true",
"trimTrailing": "true",
"blankFill": "true",
"rjZeroFill": "true",
"dataType": "char",
"formatting": "Text",
"textTransform": "uppercase",
"designValue": "[Field0001]" },
"left": "240px",
"top": "145px" }
]}]}
Number Data Example
{ "text": "", "formats": [{
"screen":{ "record format name": "" },
"items": [
{ "id": "TextBox1",
"field type": "textbox",
"css class": "input",
"value": {
"fieldName": "Field0001",
"dataLength": "10",
"decPos": "0",
"numSep": "true",
"zeroBalance": "true",
"numBlankFill": "true",
"zeroFill": "true",
"curSym": "$",
"dataType": "zoned",
"formatting": "Number",
"negNum": "-999.00",
"units": "px", "designValue": "[Field0001]" },
"left": "240px",
"top": "145px" }
]}]}
Indicator Data Example
{ "text": "", "formats": [{
"screen": { "record format name": "" },
"items": [
{ "id": "TextBox1",
"field type": "textbox",
"css class": "input",
"value": {
"fieldName": "Field0001",
"customTrue": "HI",
"customFalse": "BYE",
"dataType": "indicator",
"formatting": "Indicator",
"indFormat": "Custom Values",
"designValue": "[Field0001]" },
"left": "240px",
"top": "145px" }
]}]}
Date data Example
Time Data Example
Timestamp Data Example
Special Data Example
Custom Data Example