From 20c861f02f8e41cde2dec92f9d63d8266383c26b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 6 Mar 2014 13:58:15 +0000 Subject: docs: Port to MarkDown Drop the DocBook documentation, and move everything to the MarkDown format used by modern gtk-doc. --- json-glib/json-gvariant.c | 64 ++++++++++++++++------------------------------- 1 file changed, 22 insertions(+), 42 deletions(-) (limited to 'json-glib/json-gvariant.c') diff --git a/json-glib/json-gvariant.c b/json-glib/json-gvariant.c index 41b6f43..99e6d64 100644 --- a/json-glib/json-gvariant.c +++ b/json-glib/json-gvariant.c @@ -51,49 +51,29 @@ * JSON, a #GVariant type string (signature) should be provided to these * methods in order to obtain a correct, type-contrained result. * If no signature is provided, conversion can still be done, but the - * resulting #GVariant value will be "guessed" from the JSON data types, - * according to the following table: + * resulting #GVariant value will be "guessed" from the JSON data types + * using the following rules: * - * Default JSON to GVariant conversion (without signature constrains) - * - * - * - * JSON - * GVariant - * - * - * - * - * string - * string (s) - * - * - * int64 - * int64 (x) - * - * - * boolean - * boolean (b) - * - * - * double - * double (d) - * - * - * array - * array of variants (av) - * - * - * object - * dictionary of string-variant (a{sv}) - * - * - * null - * maybe variant (mv) - * - * - * - *
+ * ## Strings + * JSON strings map to GVariant `(s)`. + * + * ## Integers + * JSON integers map to GVariant int64 `(x)`. + * + * ## Booleans + * JSON booleans map to GVariant boolean `(b)`. + * + * ## Numbers + * JSON numbers map to GVariant double `(d)`. + * + * ## Arrays + * JSON arrays map to GVariant arrays of variants `(av)`. + * + * ## Objects + * JSON objects map to GVariant dictionaries of string to variants `(a{sv})`. + * + * ## Null values + * JSON null values map to GVariant maybe variants `(mv)`. */ /* custom extension to the GVariantClass enumeration to differentiate -- cgit v1.2.1