0% found this document useful (0 votes)
9 views2 pages

CorrectJSON Format

The document outlines a set of fields related to financial data collection, including Financial Year, Gross Income, Taxable Income, Savings, and % Savings. Each field has a specified type, with Gross Income, Taxable Income, and Savings requiring validation through multiple regex rules. The document ensures that users enter valid numerical data for these financial metrics.

Uploaded by

vickypachori1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

CorrectJSON Format

The document outlines a set of fields related to financial data collection, including Financial Year, Gross Income, Taxable Income, Savings, and % Savings. Each field has a specified type, with Gross Income, Taxable Income, and Savings requiring validation through multiple regex rules. The document ensures that users enter valid numerical data for these financial metrics.

Uploaded by

vickypachori1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

"questionDetails": [

{
"fieldId": 1,
"seq": 1,
"jsonPropName": "FY",
"name": "Financial Year",
"type": "integer",
"validationRegex": null
},
{
"fieldId": 2,
"seq": 2,
"jsonPropName": "GrossIncome",
"name": "Gross Income",
"type": "decimal",
"validationRegex": [
{
"rule": "^\\d+$",
"message": "Please enter Gross Income",
"type": "regex"
},
{
"rule": "^[0-9]*$",
"message": "Please enter Gross Income",
"type": "regex"
},
{
"rule": "^[0-9]{1,14}$",
"message": "Please enter Gross Income",
"type": "regex"
}
]
},
{
"fieldId": 3,
"seq": 3,
"jsonPropName": "TaxableIncome",
"name": "Taxable Income",
"type": "decimal",
"validationRegex": [
{
"rule": "^\\d+$",
"message": "Please enter Gross Income",
"type": "regex"
},
{
"rule": "^[0-9]*$",
"message": "Please enter Gross Income",
"type": "regex"
},
{
"rule": "^[0-9]{1,14}$",
"message": "Please enter Gross Income",
"type": "regex"
}
]
},
{
"fieldId": 4,
"seq": 4,
"jsonPropName": "Savings",
"name": "Savings",
"type": "decimal",
"validationRegex": [
{
"rule": "^\\d+$",
"message": "Please enter Gross Income",
"type": "regex"
},
{
"rule": "^[0-9]*$",
"message": "Please enter Gross Income",
"type": "regex"
},
{
"rule": "^[0-9]{1,14}$",
"message": "Please enter Gross Income",
"type": "regex"
}
]
},
{
"fieldId": 5,
"seq": 5,
"jsonPropName": "%Savings",
"name": "% Savings",
"type": "decimal",
"validationRegex": null
}

You might also like