-
-
Notifications
You must be signed in to change notification settings - Fork 15
jsonutils
Mobius One edited this page Jul 20, 2026
·
4 revisions
Classe que unifica todas as funções JSON anteriormente disponíveis no repositório, como DatasetToJSON e JSONSorter, além de adicionar um novo recurso de container para JSON e vice-versa, de forma que você converte uma tela inteira pra JSON ou alimenta uma tela inteira baseado no JSON.
Os controles ainda possuem um tipo de configuração baseado na tag dele:
- se a tag for -1, ele é ignorado
- se a tag for 0, usa a propriedade mais comum
senão segue a tabela abaixo:
| Controle | Valor da Tag | Propriedade FMX | Propriedade VCL |
|---|---|---|---|
| TEdit | 0 | Text | Text |
| TComboBox | 0 | ItemIndex | ItemIndex |
| TComboBox | 1 | ItemText | ItemText |
| TComboEdit | 0 | ItemIndex | N/A |
| TComboEdit | 1 | Text | N/A |
| TDateEdit | 0 | Text | Text |
| TSwitch | 0 | IsChecked | N/A |
| TCheckBox | 0 | IsChecked | Checked |
| TLabel | 0 | Text | Caption |
| TLabeledEdit | 0 | N/A | Text |
| TValueListEditor | 0 | N/A | Cells |