5/24/2023 0 Comments Delphi serializeobject![]() The code that used it was deserializing the data to a JSON.NET JObject in code. I was working with some code the other day that stored objects in PostgreSQL using the built-in JSON support. ![]() You have also JSON serialization at hand, including custom layout - see sustom JSON serialization of records. Serialization uses an optimized binary format, and is able to save and load any record or dynamic array as RawByteString. Background - using JObject for dynamic data DateTime mayanEndOfTheWorld new DateTime(2012, 12, 21) string jsonIsoDate JsonConvert.SerializeObject(mayanEndOfTheWorld) Console.WriteLine(jsonIsoDate. It's able to serialize any dynamic array. In this post I describe one of the quirks of serializing JSON.NET JObject (contract resolvers are not honoured), and show how to get camelCase names when serializing a JObject that stored its property names in PascalCase.
0 Comments
Leave a Reply. |