---
title: "The Fine Print: Part 2"
url: https://daily.dev/posts/the-fine-print-part-2-jzfj09ipt
source_url: https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-2.html
type: article
source: "Ardan Labs"
published: 2025-02-04T15:20:35.084Z
updated: 2025-02-04T15:20:49.462Z
tags: ["webdev", "golang"]
reading_time: 11
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Fine Print: Part 2

**[Ardan Labs](https://daily.dev/sources/ardlbs)** · 11 min read · 0 upvotes · 0 comments

## Summary

Understanding the difference between json.Marshal and json.NewEncoder in Go, this post explores simple marshaling, using struct tags for custom JSON properties, and how to implement json.Marshaler for custom types. It also covers streaming JSON with JSON lines and chunked transfer encoding over HTTP.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.ardanlabs.com/blog/2024/10/json-the-fine-print-part-2.html>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#golang](https://daily.dev/tags/golang)

[View this post on daily.dev](https://daily.dev/posts/the-fine-print-part-2-jzfj09ipt)
