viniciussanchez / dataset-serialize

JSON to DataSet and DataSet to JSON converter for Delphi and Lazarus (FPC)
MIT License
653 stars 161 forks source link

Bug with fields with "_" #177

Closed luapfr closed 2 years ago

luapfr commented 2 years ago

can't return data when the field has "_" this example fails

[ { "id": 3, "des_ricao": "coca cola", "ativo": true, "prec_o": 2.50, "cadastro": "03/08/1995" } ]

manages to mount the TFields but does not bring any data

viniciussanchez commented 2 years ago

this is not a bug, it's a configuration. take a look at the documentation

luapfr commented 2 years ago

I didn't find anything in the documentation about "_" can you show me?

ds-sampaio commented 2 years ago

Eu não encontrei nada na documentação sobre "_" você pode me mostrar?

Se vc configurar desse jeito vai consegui retornar TDataSetSerializeConfig.GetInstance.CaseNameDefinition := TCaseNameDefinition.cndLower;

viniciussanchez commented 2 years ago

image