()
| 579 | } |
| 580 | |
| 581 | func (j *jsonEncoded) AsArray() ([]JSON, bool) { |
| 582 | if dec := j.alreadyDecoded(); dec != nil { |
| 583 | return dec.AsArray() |
| 584 | } |
| 585 | decoded, err := j.decode() |
| 586 | if err != nil { |
| 587 | return nil, false |
| 588 | } |
| 589 | return decoded.AsArray() |
| 590 | } |
| 591 | |
| 592 | func (j *jsonEncoded) Compare(other JSON) (_ int, err error) { |
| 593 | if other == nil { |
nothing calls this directly
no test coverage detected