| 1658 | func (j jsonString) toGoRepr() (interface{}, error) { return string(j), nil } |
| 1659 | func (j jsonNumber) toGoRepr() (interface{}, error) { return json.Number(j.String()), nil } |
| 1660 | func (j jsonArray) toGoRepr() (interface{}, error) { |
| 1661 | result := make([]interface{}, len(j)) |
| 1662 | for i, e := range j { |
| 1663 | next, err := e.toGoRepr() |
| 1664 | if err != nil { |
| 1665 | return nil, err |
| 1666 | } |
| 1667 | result[i] = next |
| 1668 | } |
| 1669 | return result, nil |
| 1670 | } |
| 1671 | func (j jsonObject) toGoRepr() (interface{}, error) { |
| 1672 | result := make(map[string]interface{}) |
| 1673 | for _, e := range j { |