Fix: tojson(null) == 'null' (#1068)
* Fix: tojson(null) == 'null' * Update test * Update functions_test.go
This commit is contained in:
@@ -137,6 +137,7 @@ func TestFunctionToJSON(t *testing.T) {
|
||||
name string
|
||||
}{
|
||||
{"toJSON(env) }}", "{\n \"key\": \"value\"\n}", "toJSON"},
|
||||
{"toJSON(null)", "null", "toJSON-null"},
|
||||
}
|
||||
|
||||
env := &EvaluationEnvironment{
|
||||
|
Reference in New Issue
Block a user