I have a "ValueObject" which I construct from a double and hold the value in private field.
I don't expose any properties or fields as public. How do I instruct Json.Net to serialize this objects value as double, and not as string?
I want this
"TimeStamp":0.00
Not this
"TimeStamp":"0.00"
Basically, I want a value of the "value object" to be serialized into json as double.
I implemented TypeConverter and added attribute to my value object, but serializer wants to serialize it into string.