We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
*time.Time
nil
"null"
null
When a serialisation struct has a *time.Time field with nil value, it is generating JSON with "null" instead of just null
struct:
type Data struct { Datetime *time.Time `json:"Datetime"` }
JSON:
{ "Datetime":"null" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When a serialisation struct has a
*time.Time
field withnil
value, it is generating JSON with"null"
instead of justnull
struct:
JSON:
The text was updated successfully, but these errors were encountered: