mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

* amazing-pp/topic/fupeng/from_json_bif: Implement from_json bif Minor updates during merge: Moved ValFromJSON into zeek::detail for the time being, removed gotos, normalized some error messages to lower case, minimal test extension and added a raw reader input framework test reading "json lines" as a demo, adding notes about the implicit type conversions.
7 lines
798 B
Text
7 lines
798 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
Valid: [ip=192.168.0.1, source=local, timestamp=1990-09-22T12:13:14, timestamp_parsed=654005594.0] ({"ip": "192.168.0.1", "source": "local", "timestamp": "1990-09-22T12:13:14"})
|
|
Valid: [ip=192.168.0.1, source=local, timestamp=1990-09-23T13:14:15, timestamp_parsed=654095655.0] ({"ip": "192.168.0.1", "source": "local", "timestamp": "1990-09-23T13:14:15"})
|
|
Valid: [ip=192.168.0.2, source=local, timestamp=<uninitialized>, timestamp_parsed=<uninitialized>] ({"ip": "192.168.0.2", "source": "local"})
|
|
Invalid: '{"source": "local"}'
|
|
Invalid: '{... ]'
|
|
Valid: [ip=8.8.4.4, source=remote, timestamp=<uninitialized>, timestamp_parsed=<uninitialized>] ({"ip": "8.8.4.4", "source": "remote"})
|