zeek/testing/btest/Baseline/scripts.base.frameworks.input.from_json/out
Arne Welzel 264284150b Merge remote-tracking branch 'amazing-pp/topic/fupeng/from_json_bif'
* 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.
2023-05-09 10:36:58 +02:00

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"})