Merge remote-tracking branch 'origin/topic/timw/606-json-nulls'

* origin/topic/timw/606-json-nulls:
  GH-606: Output nulls into json data if a field isn't set
This commit is contained in:
Jon Siwek 2019-09-30 17:39:50 -07:00
commit 97519e4350
8 changed files with 30 additions and 3 deletions

View file

@ -93,11 +93,15 @@ event zeek_init()
local ve3: vector of addr = vector(1.2.3.4);
local ve4: vector of set[bool] = vector(set(T, F));
local ve5: vector of myrec1 = vector(myrec1($s="test", $c=2));
local ve6: vector of count;
ve6[0] = 0;
ve6[2] = 2;
print to_json(ve1);
print to_json(ve2);
print to_json(ve3);
print to_json(ve4);
print to_json(ve5, T);
print to_json(ve6);
# Sets
local st1: set[count] = set();