Skip to content

Instantly share code, notes, and snippets.

@kentquirk
Created July 24, 2015 20:58
Show Gist options
  • Save kentquirk/f37941e32447c94ebb29 to your computer and use it in GitHub Desktop.
Save kentquirk/f37941e32447c94ebb29 to your computer and use it in GitHub Desktop.
ugly struct
type Data struct {
Data []struct {
Data struct {
Stimulus string `json:"stimulus,omitempty"`
Template string `json:"template,omitempty"`
Type string `json:"type,omitempty"`
Validation struct {
ScoringType string `json:"scoring_type,omitempty"`
ValidResponse struct {
Score int `json:"score,omitempty"`
Value []string `json:"value,omitempty"`
} `json:"valid_response,omitempty"`
} `json:"validation,omitempty"`
} `json:"data,omitempty"`
Reference string `json:"reference,omitempty"`
Type string `json:"type,omitempty"`
WidgetType string `json:"widget_type,omitempty"`
} `json:"data,omitempty"`
Meta struct {
Next string `json:"next,omitempty"`
Records int `json:"records,omitempty"`
Status bool `json:"status,omitempty"`
Timestamp int `json:"timestamp,omitempty"`
} `json:"meta,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment