Change from_json to return an error rather than print it.

This commit is contained in:
Steve Smoot 2025-04-23 15:56:12 -07:00
parent 8054547712
commit 9ef579b09e
25 changed files with 24 additions and 36 deletions

View file

@ -1477,6 +1477,7 @@ function from_json_default_key_mapper(s: string): string
type from_json_result: record {
v: any &optional; ##< Parsed value.
valid: bool; ##< True if parsing was successful.
err: string &optional; ## Error string if unsuccessful.
};
# TCP values for :zeek:see:`endpoint` *state* field.