Skip to content

How to get the input field data in valid json format on press of send button #10

@sarkaramitabh300

Description

@sarkaramitabh300

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

	}]
}

]`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions