Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Consuming Unknown JSON Input

Go in 5 Minutes, episode 19, as requested by @tmcarr!

This screencast teaches how to consume some unknown JSON. We don't know what it looks like ahead of time, and we have to handle anything that comes our way.

We'll be using only the standard library for this, although we could also use some wonderful packages out there to help. My favorite so far is Bitly's go-simplejson. I've always done this type of parsing myself, but I've started using go-simplejson and really like it. It's well designed and very easy to use!


  1. Basics of JSON Parsing in Go
  2. Handling different types with recursion :)
  3. Let's see an example!
You can’t perform that action at this time.