| 1735 | func (j jsonString) toGoRepr() (interface{}, error) { return string(j), nil } |
| 1736 | func (j jsonNumber) toGoRepr() (interface{}, error) { return json.Number(j.String()), nil } |
| 1737 | func (j jsonArray) toGoRepr() (interface{}, error) { |
| 1738 | result := make([]interface{}, len(j)) |
| 1739 | for i, e := range j { |
| 1740 | next, err := e.toGoRepr() |
| 1741 | if err != nil { |
| 1742 | return nil, err |
| 1743 | } |
| 1744 | result[i] = next |
| 1745 | } |
| 1746 | return result, nil |
| 1747 | } |
| 1748 | func (j jsonObject) toGoRepr() (interface{}, error) { |
| 1749 | result := make(map[string]interface{}) |
| 1750 | for _, e := range j { |