| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
In order to be resilient towards future API bumps, we should have very
few places that deal with the API version encoded inside paths and file
names.
|
|
|
|
|
| |
Avoid cluttering the source directories, and makes finding things
easier.
|
|
|
|
| |
Use variables for common values, instead of duplicating them.
|
|
|
|
|
|
| |
GTest can use environment variables to find the test data in the source
and build directory, so we don't need to copy files around using Python
scripts.
|
|
|
|
|
|
|
| |
This allows finding Python3 on Windows, in order to build and run the
tests.
https://bugzilla.gnome.org/show_bug.cgi?id=780550
|
|
|
|
|
| |
We need to point to the binary, but we're using the wrong name for the
Exec key.
|
|
|
|
|
|
|
|
|
| |
If a JsonObject has no members, json_object_get_members() and
json_object_get_values() will return NULL, so this commit makes that
behavior clear in the docs. It also adds the (nullable) annotation in a
few places in the same file.
https://bugzilla.gnome.org/show_bug.cgi?id=769206
|
|
|
|
|
|
|
|
| |
In json_from_string, just pass the user-provided GError** to
json_parser_load_from_data. Otherwise json_from_string will never
propagate any parser errors back to the caller.
https://bugzilla.gnome.org/show_bug.cgi?id=766281
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
methods
json_builder_add_boolean_value
json_builder_add_double_value
json_builder_add_int_value
json_builder_add_null_value
json_builder_add_string_value
json_builder_add_value
json_builder_begin_array
json_builder_begin_object
json_builder_end_array
json_builder_end_object
json_builder_get_root
json_builder_set_member_name
json_generator_get_root
json_reader_get_error
json_reader_get_member_name
json_reader_get_value
json_serializable_find_property
json_serializable_find_property
json_boxed_serialize
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=758580
|
|
|
|
|
|
| |
matches the json_reader_is_value check.
https://bugzilla.gnome.org/show_bug.cgi?id=758580
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The doc for json-glib misstates the meaning of the JsonPath set notation
operator, as in
$.store.book[0,2]
This does not mean elements 0 to 2 (a range) but rather just elements 0
and 2.
This is correctly handled in the library; it's just the doc that is
wrong.
https://bugzilla.gnome.org/show_bug.cgi?id=768788
|
| |
|
|
|
|
|
|
|
| |
Instead share a single GString in all
dump functions.
https://bugzilla.gnome.org/show_bug.cgi?id=773504
|
|
|
|
|
| |
GLib already has a convenient API for stealing pointer values and
replacing them with NULL, so let's use it.
|
|
|
|
|
|
| |
This avoids copying the root node for the parse-to-node use-case.
https://bugzilla.gnome.org/show_bug.cgi?id=774688
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=774688
|
| |
|
|
|
|
| |
We use Meson to build JSON-GLib, now.
|
|
|
|
|
|
| |
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772753
|
| |
|
| |
|
|
|
|
| |
We depend on gio-2.0, which strings along glib-2.0 and gobject-2.0.
|
|
|
|
| |
We need to specify the sub-directory for the inclusion directive.
|
|
|
|
|
|
| |
The autotools build specifies the include header with the --c-include
argument for g-ir-scanner, so we need to do the same when building with
Meson.
|
|
|
|
|
| |
We have a couple of generated header files, which means we need to list
them as sources for the introspection scanner.
|
|
|
|
|
|
|
| |
We don't need to make internal targets depend on generated sources, just
on the generated header files. Depending on the generated sources will
cause Meson to compile the generated sources once for each internal
target.
|
|
|
|
| |
The single include 'json-glib.h' header is missing.
|
|
|
|
| |
The file is generated at configuration time.
|
|
|
|
|
|
| |
We should install our tests in order to get them executed in
environments like GNOME Continuous and other continuous delivery
systems.
|
|
|
|
| |
Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
|
|
|
|
|
|
|
| |
We want more warnings to be printed out when build json-glib.
We also want to take advantage of linker flags like z,relro and z,now,
as well as -Bsymbolic-functions.
|
|
|
|
|
|
|
| |
We need to tell the compiler that the 3rd argument is a format-like
string, and that the arguments for that come in the variadic arguments
list; this allows compilers like GCC to do validation on the format
string itself, and avoid a whole class of bugs.
|
|
|
|
|
|
| |
We can use the gnome module to generate the JSON-GLib API reference.
https://bugzilla.gnome.org/show_bug.cgi?id=773603
|
|
|
|
|
|
| |
Clean up the coding style, and make it a bit more idiomatic.
https://bugzilla.gnome.org/show_bug.cgi?id=773603
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=773603
|
|
|
|
| |
Original patch by: Thibault Saunier <tsaunier@gnome.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When converting json to its string representation, whole-doubles (such
as 1.0) would be converted into strings without decimals ("1"). That can
be inconvenient e.g. when converting from/to GVariants.
To avoid this, append '.0' to the string representation for doubles if
they lost their decimals in the conversion.
Also add / update unit tests for this.
https://bugzilla.gnome.org/show_bug.cgi?id=753763
|
|
|
|
|
|
| |
Or compilation fails with -Werror
https://bugzilla.gnome.org/show_bug.cgi?id=773604
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=773603
|
|
|
|
|
|
|
| |
We seal nodes conditionally on the :immutable property, but we are
sealing their contents unconditionally.
https://bugzilla.gnome.org/show_bug.cgi?id=779970
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 028e540 disallowed empty member names in objects, however
they are unfortunately valid JSON. This patch reenables an empty
string as a member name.
Tests are updated to allow the empty string case, and to test
the use of an empty string in generation, iteration etc.
https://bugzilla.gnome.org/show_bug.cgi?id=747279
|
|
|
|
|
| |
This way developers can use G_DECLARE_INTERFACE with Serializable as a
pre-condition.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Clarify in the documentation what each of the JsonNode getters when
called on a node which contains a value whose type is not what the
caller expects (since this behaviour is well-defined in the code).
Add relevant (nullable) annotations too.
Inspired by http://stackoverflow.com/q/42081921/2931197.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=779464
|
|
|
|
| |
They need to be exactly one line above a string to show up in .po files.
|
|
|
|
|
|
|
| |
This changes the introspection build process on MSVC by moving the
source/header list generation from using a Python script to generating
the list (and the full command lines for g-ir-scanner and g-ir-compiler)
using the common autotools module, to make it more easily maintained.
|
|
|
|
|
|
|
|
|
| |
This makes use of the common build/Makefile.msvcproj to create the full
Visual Studio 2008/2010 project files from their respective templates,
while making the autotools files cleaner. As an added benefit, this also
enables the list of headers to "install" to be filled in automatically
during 'make dist', so that we will have to worry less about the addition
or removal of public headers.
|
|
|
|
|
| |
The json_node_is_immutable() missed an JSON_AVAILABLE_IN_1_2, causing it
not to be exported. Fix this.
|
|
|
|
|
| |
This allows conditional compilation, and it makes the debugging code
consistent.
|
| |
|