Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "displayName": "MyApp01",
- <...>
- },
- {
- "displayName": "MyApp02",
- <...>
- }
- ]
- import "encoding/json"
- type Application struct {
- DisplayName string `json:"displayName"`
- }
- type Applications []Application
- func main() {
- var response []byte // assume this is filled with the json stuff
- var resource Applications
- err := json.Unmarshal(response, &resource)
- }
Add Comment
Please, Sign In to add comment