String returns the string representation of the JSON object.
()
| 21 | |
| 22 | // String returns the string representation of the JSON object. |
| 23 | func (j *JSONValue) String() string { |
| 24 | b, err := json.Marshal(j.Value) |
| 25 | if err != nil { |
| 26 | return "failed to marshal object" |
| 27 | } |
| 28 | return string(b) |
| 29 | } |
| 30 | |
| 31 | // Set parses the JSON string into the value. |
| 32 | func (j *JSONValue) Set(s string) error { |
no outgoing calls