MarshalJSON will marshal this map as JSON
()
| 53 | |
| 54 | // MarshalJSON will marshal this map as JSON |
| 55 | func (this *RowData) MarshalJSON() ([]byte, error) { |
| 56 | cells := make([](*CellData), len(*this), len(*this)) |
| 57 | for i, val := range *this { |
| 58 | d := CellData(val) |
| 59 | cells[i] = &d |
| 60 | } |
| 61 | return json.Marshal(cells) |
| 62 | } |
| 63 | |
| 64 | // ResultData is an ordered row set of RowData |
| 65 | type ResultData []RowData |