-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
JSON Array support #136
Comments
That's definitely on our radar. For now, you can use The best way I can think of to support JSON arrays (while keeping performance good) is to add specific helpers for each slice type. We'd end up with Are you interested in working on this feature? |
@akshayjshah , what do you think of the following approach:
|
This is in-progress on the dev branch: #211 |
Further support in #258. |
Add wrappers for common array types. This fixes #136.
Add wrappers for common array types. This fixes #136.
Add wrappers for common array types. This fixes #136.
Landed on dev. |
zap supports nested JSON Objects with
zap.Nest
orzap.Marshaler
, but does not support JSON Array yet. Current workaround is to usezap.Object
and implementMarshalJSON
to output JSON Array. How about built-in support for JSON Array likezap.Array
?The text was updated successfully, but these errors were encountered: