Comments (8)
If you're taking the trouble to report an issue, at least supply all relevant details. (And a small fully contained reproduction scenario)
from jsondataobjects.
I can't reproduce this with the following code:
procedure TestTJsonObject.TestIssue71;
var
Json: TJsonObject;
S: string;
begin
Json := TJsonObject.Parse('{ "_GCV_0_A": "24" }') as TJsonObject;
try
CheckEquals(
'{' + JsonSerializationConfig.LineBreak +
JsonSerializationConfig.IndentChar + '"_GCV_0_A": "24"' + JsonSerializationConfig.LineBreak +
'}' + JsonSerializationConfig.LineBreak, Json.ToJSON(False));
finally
Json.Free;
end;
end;
You could try to disable one or both of the following defines:
- USE_LAST_NAME_STRING_LITERAL_CACHE
- USE_FAST_STRASG_FOR_INTERNAL_STRINGS
Maybe something is fishy with those optimizations, as the string seems to be modified. Or there is something else overwriting the memory outside of JsonDataObjects, that possibility always exists.
from jsondataobjects.
i try it,but do not work;
i have only one line use this
UserItem.Custom['GCV'+nAbilSite.ToString+'_A']:=nValue.ToString;
property Custom[const v: string]: String read GetStringValue write SetStringValue;
procedure TUserItem.SetStringValue(const v: string; Value: string);
begin
if v.Length>0 then
Values.O['Custom'].S[v] := Value;
end;
some time
UserItem.values.tojson has this error;
maybe key empty
maybe like _GCV_0d\u0000
i assign this Custom Value only this one line.
from jsondataobjects.
some places
i used
useritem.values = useritem.values.clone
from jsondataobjects.
like this
HumData.O['BagItems'].O[i.ToString] :=
pTUserItem(m_ItemList.Items[i]).Values.Clone;
from jsondataobjects.
i used delphi 11.0
from jsondataobjects.
How about providing a project that reproduces the bug, so some others can test it for you. Leaving shouty comments on the ticket is of no use. Thanks.
from jsondataobjects.
can't reproduces the bug by myself..
it is occur in production environment
from jsondataobjects.
Related Issues (20)
- JsonPath support HOT 2
- Can Delphi 2007 be supported
- Should line not use 'JsonMemInfoMainBlockStart' instead of 'JsonMemInfoBlockStart' HOT 3
- DPM support HOT 1
- JsonSerializationConfig ignore fields with empty value
- Can't generate unit from valid json HOT 5
- How to swap elements in array
- index out of range when accessing array of jsonobject HOT 2
- Case insensitive names to access nodes HOT 1
- Support for "delete by path"
- Float value decimal missing when writing
- Extract JsonPath
- Wrong Read/Write SaveToFile/LoadFromFile
- Support 11.0 or 11.1 code
- Support for null json values HOT 1
- Code for enhancements
- how about ignore case the key? HOT 1
- TJsonBaseObject.ParseFromFile fails on IIS
- uninitialized null type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsondataobjects.