Releases: karekoho/json
Releases · karekoho/json
v2.0.1
- Allow json string to contain any number of inner double quotes.
This conforms to https://datatracker.ietf.org/doc/html/rfc8259#section-7 - Remove trailing zeros from string representation of a decimal number and use decimal exponent notation when necessary
Version 2.0
- Move all json objects to namespace format::json. E.g format::json::number.
- Build target name is now format-json.
- Add const accessors, const & value::at[const wchar * const key] const.
- Store numeric value in long double.
- String, number, boolean are now immutable objects.
- Rename value::count () to size ().
- Add int, long long and float overloads to number.
- Make casting json object to primitive value more accurate.
Value is only casted to primitive if it is actually possible by static_cast.
Otherwise json_conversion_error is thrown.
This also fixes numeric value bug for string type object.
See: #2 - Object and array iterators are now const iterators, object::const_iterator
- String and number do not lazy generate anything, so string and number::value () are truly const..
- value::stringify () is const.
- value::stringify () returns pointer to new memory.
- Primitive values are stored in union { bool, const wchar_t *, long double }
Version 1.0
Changes to 0.9: this release adds methods
double d = value.as ();
long l = value.as ();
bool b = value.as ();
const wchar_t * c = value.as<const wchar_t *> ();
to get the primitive value of a json object.
First development release
Altough this is a development release, it defines the public API.
This release contains the same features that will be present in 1.0.0
Only some test enhancements and possible bug fixes will be done before v1.0 beta.