Tools
Tools

Go Language JSON to Struct


Ever saw a huge JSON string and wanted it as a Go Language Struct? Here’s a great tool to automagically convert that JSON to a usable struct for your golang application.

https://mholt.github.io/json-to-go/

Try it out for yourself!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
	"user": [{
		"id": 1,
		"name": "bill"
	}, {
		"id": 2,
		"name": "joe"
	}, {
		"id": 3,
		"name": "tom"
	}],
	"address": [{
		"user_id": 1,
		"line1": "6546 yoyo lane",
		"city": "san francisco",
		"state": "california"
	}]
}

View Comments
There are currently no comments.