#1 2015-12-10 10:15:35

hnb
Member
Registered: 2015-06-15
Posts: 290

[patch] Don't store empty string

As mentioned in topic, "don't store empty string" patch for ObjectToJSON function is attached below:

https://drive.google.com/file/d/0B4PZhd … sp=sharing

This patch is introduces new flag woDontStoreEmptyString for TTextWriterWriteObjectOption

Last edited by hnb (2015-12-11 07:50:52)


best regards,
Maciej Izak

Offline

#2 2015-12-10 10:29:12

hnb
Member
Registered: 2015-06-15
Posts: 290

Re: [patch] Don't store empty string

What do you think about woDontStoreDefault for Int64 properties? I know that "default" value is only 32 bit, but dropping this functionality for Int64 properties is a little confusing...


best regards,
Maciej Izak

Offline

#3 2015-12-11 08:27:14

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,666
Website

Re: [patch] Don't store empty string

I've introduced woDontStoreEmptyString option for TTextWriter.WriteObject(), and also let tkInt64 values handle woDontStoreDefault option.
See http://synopse.info/fossil/info/fdc964b3e9

Thanks for the patch!

Offline

Board footer

Powered by FluxBB