Tim Wojtulewicz
46ff48c29a
Change all instruments to only handle doubles
2024-05-31 13:36:37 -07:00
Arne Welzel
aa5d7f5a73
OpaqueVal: Register TelemetryVals, too
...
Even if they are not serializable, OpaqueMgr::TypeID() is called
during BuildJSON() for them and that previously just aborted.
Closes #3473
2023-11-28 09:21:31 +01:00
Vern Paxson
d00748a2e7
update test suite for vector holes now being supported for numeric types
2021-04-14 18:19:26 -07:00
Vern Paxson
ab0b773522
test suite updates reflecting that vectors no longer support arbitrary "holes"
2021-02-25 17:00:36 -08:00
Christian Kreibich
0b674eb851
Baseline refresh to reflect btest 0.64
2020-12-06 20:19:49 -08:00
Tim Wojtulewicz
21872aef39
Updating test baselines for new dictionary code due to changes in ordering of fields in the dictionary
2020-08-09 21:13:10 -07:00
Tim Wojtulewicz
46e7308422
GHI-595: Convert from nlohmann/json to rapidjson for performance reasons
2020-01-14 15:43:25 -07:00
Jon Siwek
a5d71ed2d2
Merge remote-tracking branch 'origin/topic/timw/595-json-perf'
...
* origin/topic/timw/595-json-perf:
Update COPYING.3rdparty
Use json::emplace to avoid some extra calls to operator[]
Use tessil/unordered-map instead of nlohmann/fifo-map to mitigate performance issues when logging JSON
2019-10-01 16:42:59 -07:00
Jon Siwek
a34ade4876
Improve RecordVal JSON formatting
...
No need to create a record introspection table each time when all
the required information can be obtained directly in the RecordVal
and RecordType objects. Besides the additional overhead, using such
a table will re-order the fields arbitrarily instead of using the
order in which they're defined.
2019-09-30 19:04:55 -07:00
Jon Siwek
97519e4350
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
2019-09-30 17:40:27 -07:00
Tim Wojtulewicz
d4c394b72a
GH-606: Output nulls into json data if a field isn't set
2019-09-27 14:12:48 -07:00
Tim Wojtulewicz
756f363185
GH-598: handle multi-key sets correctly when outputting json
2019-09-27 12:01:47 -07:00
Tim Wojtulewicz
d4d1009b5c
Use json::emplace to avoid some extra calls to operator[]
2019-09-27 09:58:24 -07:00
Tim Wojtulewicz
d27c846ec5
Update unit test output to match json.zeek being deprecated and slight format changes to JSON output
2019-07-02 13:14:52 -07:00
Daniel Thayer
6812a7febe
Fix to_json() to not lose precision for values of type double
...
Also changed a few values in the tests for better numerical diversity.
2017-02-02 13:03:05 -06:00
Daniel Thayer
65d6e5a4f7
Fix the to_json() function for bool, enum, and interval types
2017-02-02 12:09:40 -06:00
Daniel Thayer
9370db8980
Add tests for the to_json() function
2017-02-02 11:58:38 -06:00