JSONString returns json string of the resource
()
| 74 | |
| 75 | //JSONString returns json string of the resource |
| 76 | func (resource *Resource) JSONString() (string, error) { |
| 77 | bytes, err := json.Marshal(resource.Data()) |
| 78 | return string(bytes), err |
| 79 | } |
| 80 | |
| 81 | //Schema gets schema from resource |
| 82 | func (resource *Resource) Schema() *Schema { |