episode19

command
v0.0.0-...-c6e3130 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

Consuming Unknown JSON Input

Go in 5 Minutes, episode 19.

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!

Outline

  1. Basics of JSON Parsing in Go
  2. Handling different types with recursion :)
  3. Let's see an example!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL