Skip to content

Releases: karekoho/json

v2.0.1

07 Mar 05:58
Compare
Choose a tag to compare

Version 2.0

05 Jun 10:28
Compare
Choose a tag to compare
  • 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

09 Jan 18:37
Compare
Choose a tag to compare

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

03 Aug 18:56
Compare
Choose a tag to compare

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.