aboutsummaryrefslogtreecommitdiff
path: root/model/nullNode.go
blob: 448b18b2f7f681c5425336a263c45faaa4548dab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package model

type NullNode struct{}

func (n NullNode) Type() NodeType {
	return NullType
}

func (n NullNode) MarshalJSON() ([]byte, error) {
	return []byte("null"), nil
}