# json in go

Published articles for json in go.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Managing JSON Field Tags and Value Handling in Go - Ep.3

DevFeed: [Managing JSON Field Tags and Value Handling in Go - Ep.3](<https://devfeed.tech/articles/managing-json-field-tags-and-value-handling-in-go-ep-3-22265.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-ep-3-managing-json-field-tags-and-value-handling-in-go.html>)

Published: 2024-10-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>)

Tags: [default-values-in-go-structs](<https://devfeed.tech/tags/default-values-in-go-structs.md>), [go](<https://devfeed.tech/tags/go.md>), [go-default-values](<https://devfeed.tech/tags/go-default-values.md>), [go-field-tagging-techniques](<https://devfeed.tech/tags/go-field-tagging-techniques.md>), [go-struct-mapping](<https://devfeed.tech/tags/go-struct-mapping.md>), [handling-flexible-json](<https://devfeed.tech/tags/handling-flexible-json.md>), [handling-missing-json-values](<https://devfeed.tech/tags/handling-missing-json-values.md>), [json](<https://devfeed.tech/tags/json.md>), [json-code-reliability](<https://devfeed.tech/tags/json-code-reliability.md>), [json-data-consistency](<https://devfeed.tech/tags/json-data-consistency.md>), [json-data-structures-go](<https://devfeed.tech/tags/json-data-structures-go.md>), [json-field-consistency-go](<https://devfeed.tech/tags/json-field-consistency-go.md>), [json-field-integration-in-go](<https://devfeed.tech/tags/json-field-integration-in-go.md>), [json-field-mapping](<https://devfeed.tech/tags/json-field-mapping.md>), [json-field-tagging-in-go](<https://devfeed.tech/tags/json-field-tagging-in-go.md>), [json-for-engineers](<https://devfeed.tech/tags/json-for-engineers.md>), [json-in-go](<https://devfeed.tech/tags/json-in-go.md>), [json-in-strongly-typed-languages](<https://devfeed.tech/tags/json-in-strongly-typed-languages.md>), [json-keys-to-go-fields](<https://devfeed.tech/tags/json-keys-to-go-fields.md>), [json-parsing-errors](<https://devfeed.tech/tags/json-parsing-errors.md>), [json-parsing-strategies-go](<https://devfeed.tech/tags/json-parsing-strategies-go.md>), [json-pointers-in-go](<https://devfeed.tech/tags/json-pointers-in-go.md>), [json-schema-handling](<https://devfeed.tech/tags/json-schema-handling.md>), [json-structs-in-go](<https://devfeed.tech/tags/json-structs-in-go.md>), [json-to-go-data-integration](<https://devfeed.tech/tags/json-to-go-data-integration.md>), [json-to-go-parsing](<https://devfeed.tech/tags/json-to-go-parsing.md>), [json-unmarshalling-in-go](<https://devfeed.tech/tags/json-unmarshalling-in-go.md>), [json-value-handling](<https://devfeed.tech/tags/json-value-handling.md>), [managing-missing-values-in-json](<https://devfeed.tech/tags/managing-missing-values-in-json.md>), [managing-zero-values-in-json](<https://devfeed.tech/tags/managing-zero-values-in-json.md>), [map-string-interface-json](<https://devfeed.tech/tags/map-string-interface-json.md>), [mapping-json-to-go-structs](<https://devfeed.tech/tags/mapping-json-to-go-structs.md>), [unmarshalling](<https://devfeed.tech/tags/unmarshalling.md>)

### AI overview

This episode explains how to map JSON fields to Go struct fields with tags, distinguish missing values from zero values during unmarshalling, and use pointers, maps, or default struct values to handle flexible JSON data.

### Source excerpt

Introduction: Welcome to Episode 3 of JSON for Engineers! In this episode, Miki Tebeka explores the intricacies of JSON field mapping and value handling, especially when working in strongly typed languages like Go. This session covers the practical challenges of matching JSON fields to Go struct fields, distinguishing between missing and zero values, and using default values to ensure robust JSON parsing. These strategies are crucial for engineers managing flexible JSON data structures in a language with strict type requirements.

## Golang: Making HTTP Requests

DevFeed: [Golang: Making HTTP Requests](<https://devfeed.tech/articles/golang-making-http-requests-26286.md>)

Original publisher: [Read original article](<https://masnun.com/golang-making-http-requests/>)

Author: masnun

Published: 2017-10-22T12:54:08Z

Content type: tutorial

Language: en

Sources: [Abu Ashraf Masnun](<https://devfeed.tech/sources/abu-ashraf-masnun.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [JSON](<https://devfeed.tech/topics/json.md>), [servers](<https://devfeed.tech/topics/servers.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [json](<https://devfeed.tech/tags/json.md>), [json-in-go](<https://devfeed.tech/tags/json-in-go.md>)

### AI overview

A tutorial on making HTTP requests in Go. It demonstrates a simple GET request, reading the response body, handling connection and read errors, and preparing to send and receive JSON messages.

### Source excerpt

Go aka Golang is a very promising programming language with a lot of potential. It's very performant, easy to grasp and maintain, productive and backed by Google. In our earlier posts, we have tried to provide guidelines to learn Go and later we saw how to work with JSON in Go. In this blog post, we're [...] The post Golang: Making HTTP Requests appeared first on Abu Ashraf Masnun.