Articles with the tag "json"

How to Parse JSON That Varies Between an Array or a Single Item With Go

Have you ever interact with an API that returns variable data formats depending on the circumstances? Yeah, it's a pain. In this post we explore one particular situation - when the response can either be an array or a single item - and look at how to handle unmarshaling the JSON in Go.

JSON APIs Are Just Web Applications

A common misconception is that a JSON API is vastly different from a web application that renders server-side HTML. In this article we explore how to convert an HTML-based web app into a JSON API in order to demonstrate how similar the two really are in a well designed app.

How to determine if a JSON key has been set to null or not provided

Learn to distinguish between when a JSON key is set to null or the key wasn't provided at all when dealing with JSON in Go.

Avatar of Jon Calhoun
Articles and Tutorials by
Jon Calhoun

Jon Calhoun is a full stack web developer who teaches about Go, web development, algorithms, and anything programming. If you haven't already, you should totally check out his Go courses.

Previously, Jon worked at several statups including co-founding EasyPost, a shipping API used by several fortune 500 companies. Prior to that Jon worked at Google, competed at world finals in programming competitions, and has been programming since he was a child.

Recent Articles All Articles Mini-Series Progress Updates Tags About Me Go Courses

©2018 Jonathan Calhoun. All rights reserved.