API (POST) > Body Type (Form-data) >Variable inside parameter

The only way i managed to get the POST API to work was selection body type as “Form-data” and posting the code inside a parameter:

{
“conta”: {
“cliente”: {
“codigo”: “”,
“nome”: “Teste 123”,
“tipo_pessoa”: “F”,
“cpf_cnpj”: “22755777850”,
“ie”: “”,
“rg”: “1234567890”,
“endereco”: “Rua Teste”,
“numero”: “123”,
“complemento”: “sala 2”,
“bairro”: “Teste”,
“cep”: “95700-000”,
“cidade”: “Bento Gonçalves”,
“uf”: “RS”,
“fone”: “(54) 3055 3808”,
“email”: “teste@teste.com.br”,
“atualizar_cliente”: “N”
},
“vencimento”: “25/11/2015”,
“valor”: 54.44,
“nro_documento”: “”,
“historico”: “Teste”,
“categoria”: “Venda de Produtos”,
“competencia”: “12/2025”,
“forma_pagamento”: “boleto”,
“portador”: “”,
“ocorrencia”: “”,
“dia_vencimento”: “”,
“numero_parcelas”: “”
}
}

Using like this is working perfectly, but i need to change the values in this code according to input fields and when i press a button, the API will send the data according to the input fields.

Unfortunately, i have no idea how to turn the values writen on this code (E.g.: “email”: “teste@teste.com.br” > turn teste@teste.com.br to a variable) and than use the input field as the source of the variable.

Can you help me?

Thank you very much and sorry for my English.