mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
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:
commit
97519e4350
8 changed files with 30 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue