JSON in Go: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
==Map Marshalling== | ==Map Marshalling== | ||
==Struct Marshalling== | ==Struct Marshalling== | ||
By default, only fields that start with capital letters are marshaled. The fields that start with lower caps are invisible to the marshaling process. | |||
By default, only fields that start with capital letters are marshaled. The fields that start with lower caps are invisible. | |||
Also see: {{Internal|Go_Integers#Conversion_between_bytes_and_strings|Go Integers | Conversion between bytes and strings}} | Also see: {{Internal|Go_Integers#Conversion_between_bytes_and_strings|Go Integers | Conversion between bytes and strings}} |
Revision as of 17:06, 25 August 2023
Internal
Overview
JSON Marshalling Go → JSON
JSON marshalling means generating a JSON representation from a Go object.
Map Marshalling
Struct Marshalling
By default, only fields that start with capital letters are marshaled. The fields that start with lower caps are invisible to the marshaling process.
Also see:
TO PROCESS: https://golang.cafe/blog/golang-json-marshal-example.html