report: represent numbers as numbers
report: refactor JSON writer
- Support non-string entry types
- Prefer single-character writes over string writes
- Rename the state constants and adjust style to match more common Node.js style
report: represent numbers as numbers
Do not stringify numbers and boolean values when writing JSON.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines