Victor Julien
b99ffd9ece
eve: remove unused jansson code
5 years ago
Shivani Bhardwaj
35362b7bfa
jsonbuilder: run test if not debug-validate
5 years ago
Jason Ish
03efbccfe6
jsonbuilder: set_float, append_float methods
...
New methods for setting and appending float values.
5 years ago
Jason Ish
07e88a7479
jsonbuilder: add debug_validate to state
...
If debug validation is enabled, panic on invalid state errors.
For example, calling close on an already closed jsonbuilder
object.
5 years ago
Jason Ish
a545cdef6a
jsonbuilder: setter for formatted data
...
Create a method to set preformatted data that contains the key
and the value already formatted.
This is an optimization for static data.
5 years ago
Jason Ish
e3b7c58218
jsonbuilder: export {set,append}_string_from_bytes to C
5 years ago
Jason Ish
f184bcc10e
jsonbuilder: use Box::from_raw instead of transmute to free
...
I think this is a bad use of transmute, while the end result
is the same, Box::from_raw is more correct as we created this
pointer with Box::into_raw.
5 years ago
Jason Ish
60bfbd43fd
jsonbuilder: add reset marks
...
Add methods to get the state of a JsonBuilder (called a mark),
then allow restoring to the mark.
5 years ago
Jason Ish
942dd08654
jsonbuilder: new module for generating json
...
JsonBuilder is a Rust module for creating JSON output. Unlike
Jansson, the final JSON string is built up as items are added,
instead of building up an object tree and rendering it when
done.
The idea is to create a more efficient JSON serializer instead
of a flexible one.
5 years ago