Match each of the optional JSON struct tag directives with their correct definition.
Serializing structured JSON
JSON struct tag directives
Report a typo
Match the items from left and right columns
omitempty-stringthis directive makes that the field is never encoded into JSON
omits a struct field when it contains a zero/default value of its type
forces the data in an individual field to be encoded as a
string in the resulting JSONthis directive allows private struct fields to be encoded into JSON
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.