|
-
Jan 17th, 2018, 08:31 AM
#1
Thread Starter
Fanatic Member
Custom JSON Font Serialization
I am currently using the Newtonsoft JSON library to serialize/deserialize my object, which works great except for one issue. Font properties are serialized into a single string that must be parsed in order to acquire the appropriate values, which is a bit messy. Has anyone customized the serializer to serialize the font into an object like:
"TitleFont": {
"Name": "Arial",
"Size": 10,
"Bold": true,
"Italic": true,
"Underline": false
}
This format would be much easier to work with. Anyone have anything here? Same with deserialzation; getting the new object back into the font (assuming modifying the ReadJson event).
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|