We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the data I am getting in this format which is not a valid json [{ type: Input, title: Hi Group, placeholder: Hi Group flutter, validator: digitsOnly }, { type: Password, title: Password, response: sdfag }, { type: Email, title: Email test, placeholder: hola a todos, response: agsagd }, { type: TareaText, title: TareaText test, placeholder: hola a todos, response: dvgegsdv }, { type: RadioButton, title: Radio Button tests, value: 2, list: [{ title: product 1, value: 1 }, { title: product 2, value: 2 }, { title: product 3, value: 3 }] }, { type: Switch, title: Switch test, switchValue: true }, { type: Checkbox, title: Checkbox test, list: [{ title: product 1, value: true }, { title: product 2, value: false }, { title: product 3, value: false }] }, { type: Checkbox, title: Checkbox test 2, list: [{ title: product 1, value: true }, { title: product 2, value: true }, { title: product 3, value: false }] }]
[{ type: Input, title: Hi Group, placeholder: Hi Group flutter, validator: digitsOnly }, { type: Password, title: Password, response: sdfag }, { type: Email, title: Email test, placeholder: hola a todos, response: agsagd }, { type: TareaText, title: TareaText test, placeholder: hola a todos, response: dvgegsdv }, { type: RadioButton, title: Radio Button tests, value: 2, list: [{ title: product 1, value: 1 }, { title: product 2, value: 2 }, { title: product 3, value: 3 }] }, { type: Switch, title: Switch test, switchValue: true }, { type: Checkbox, title: Checkbox test, list: [{ title: product 1, value: true }, { title: product 2, value: false }, { title: product 3, value: false }] }, { type: Checkbox, title: Checkbox test 2, list: [{ title: product 1, value: true }, { title: product 2, value: true }, { title: product 3, value: false }] }]
I need it in this format:
`[{ "type": "Input", "title": "Hi Group", "placeholder": "Hi Group flutter", "validator": "digitsOnly" }, { "type": "Checkbox", "title": "Checkbox test", "list": [{ "title": "product 1", "value": true }, { "title": "product 2", "value": false }, { "title": "product 3", "value": true
}] }
]`
The text was updated successfully, but these errors were encountered:
Hi @AmitabhWork try with this :
final string = this.response.toString(); final newString = string.replaceAllMapped(RegExp(r'\b\w+\b'), (match) { return '"${match.group(0)}"'; }); print(newString);
Sorry, something went wrong.
No branches or pull requests
Currently the data I am getting in this format which is not a valid json
[{ type: Input, title: Hi Group, placeholder: Hi Group flutter, validator: digitsOnly }, { type: Password, title: Password, response: sdfag }, { type: Email, title: Email test, placeholder: hola a todos, response: agsagd }, { type: TareaText, title: TareaText test, placeholder: hola a todos, response: dvgegsdv }, { type: RadioButton, title: Radio Button tests, value: 2, list: [{ title: product 1, value: 1 }, { title: product 2, value: 2 }, { title: product 3, value: 3 }] }, { type: Switch, title: Switch test, switchValue: true }, { type: Checkbox, title: Checkbox test, list: [{ title: product 1, value: true }, { title: product 2, value: false }, { title: product 3, value: false }] }, { type: Checkbox, title: Checkbox test 2, list: [{ title: product 1, value: true }, { title: product 2, value: true }, { title: product 3, value: false }] }]
I need it in this format:
`[{
"type": "Input",
"title": "Hi Group",
"placeholder": "Hi Group flutter",
"validator": "digitsOnly"
},
{
"type": "Checkbox",
"title": "Checkbox test",
"list": [{
"title": "product 1",
"value": true
}, {
"title": "product 2",
"value": false
}, {
"title": "product 3",
"value": true
]`
The text was updated successfully, but these errors were encountered: