Replies: 1 comment 1 reply
-
|
Acho que o problema ai principal seria se seu campo preço é um campo numérico, porque seu JSON está retornando ele como uma string? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Boa tarde Pessoal,
Estava com problema na seguinte situação: {"id": 1, "preco": ""}
Campo preço no meu dataset está como Float, na unit DataSet.Serialize.Import, function JSONObjectToDataSet:
linha: 376 - LTryStrToFloat := StrToFloat(LJSONValue.Value, LFormatSettings); Nessa situação acontece um erro na conversão.
Arrumei da seguinte forma:
LTryStrToFloat := StrToFloatDef(LJSONValue.Value,0, LFormatSettings);
Vinicuis, se tiver outra maneira, e puder me orientar te agradeço.
Beta Was this translation helpful? Give feedback.
All reactions