Skip to content

Instantly share code, notes, and snippets.

View wikix's full-sized avatar
👻
Focusing

blacksheepwall wikix

👻
Focusing
View GitHub Profile
@wikix
wikix / parse_json.go
Created August 22, 2018 09:37 — forked from mjohnsullivan/parse_json.go
Parse JSON objects with arbitrary key names in Go using interfaces and type assertions
// Parsing arbitrary JSON using interfaces in Go
// Demonstrates how to parse JSON with abritrary key names
// See https://blog.golang.org/json-and-go for more info on generic JSON parsing
package main
import (
"encoding/json"
"fmt"
)