-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand literals by default #8
base: master
Are you sure you want to change the base?
Conversation
else | ||
{ | ||
var valueString = JsonConvert.ToString(value); | ||
writer.WriteValue(valueString.Trim('"')); // for the weirdest of reasons, DateTime is double-quoted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asbjornu JsonConvert produces quoted DateTime like "2016-01-03T00:00:00"
. any idea why this is happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, that's weird. We do quite an extensive customisation of the JSON serialisation in Pomona, please have a look at that if you dare. 😄 I can give it a whack when time allows, which I won't have for a few weeks. 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, it's just me being foolish. The date is in quotes because that is a date is represented in JSON as string. Numbers aren't so they aren't in quotes. Same with bool
Current coverage is 89.09% (diff: 88.00%)@@ master #8 diff @@
==========================================
Files 32 33 +1
Lines 386 431 +45
Methods 56 78 +22
Messages 0 0
Branches 59 65 +6
==========================================
+ Hits 345 384 +39
- Misses 29 31 +2
- Partials 12 16 +4
|
fixes #3
fixes #9