isEmptyArray returns true if j is a JSON array with length 0.
(j JSON)
| 647 | |
| 648 | // isEmptyArray returns true if j is a JSON array with length 0. |
| 649 | func isEmptyArray(j JSON) bool { |
| 650 | return j.Type() == ArrayJSONType && j.Len() == 0 |
| 651 | } |
| 652 | |
| 653 | func (j jsonNull) Compare(other JSON) (int, error) { |
| 654 | if isEmptyArray(other) { |