1. 07 Jan, 2019 1 commit
  2. 13 Mar, 2018 2 commits
    • Emmanuele Bassi's avatar
      Refresh the build system · 542bb05b
      Emmanuele Bassi authored
      We should use more idiomatic Meson:
      
        - improve the coding style
        - ensure that the `json_glib_dep` dependency object also includes
          the introspection data, if enabled
        - add a separate option for the man page generation
        - ensure that json-glib can be used as a subproject
      542bb05b
    • Emmanuele Bassi's avatar
      Add `--output` option to json-glib-format · 8b6c216d
      Emmanuele Bassi authored
      We should allow redirecting the output of the format utility to a file,
      instead of dumping everything on the standard output. This makes it
      easier to use json-glib-format inside a build system or a CI pipeline.
      8b6c216d
  3. 14 Nov, 2017 1 commit
    • Emmanuele Bassi's avatar
      Add with_default() variant for JsonObject getters · 5b816ff8
      Emmanuele Bassi authored
      When using the typed getters for JsonObject, the existing API will
      automatically fail if the member requested is not present. This is
      generally good practice, because JSON data typically does not have a
      schema, and thus is has to be validated "on the go"; a JSON object
      member that contains `null`, or `0`, or `false`, is indistinguishable
      from a JSON object member that does not exist, so we cannot simply
      return a scalar value and be done with it.
      
      We can provide an escape hatch, though, for the crowd writing parsers
      for JSON data; by using Python as the model, we can add methods that
      take a default value as a parameter, and return it as a fallback value
      if the requested object member does not exist, or if it's set to `null`.
      5b816ff8
  4. 12 Sep, 2017 1 commit
  5. 10 Jul, 2017 2 commits
  6. 17 Jun, 2017 1 commit
  7. 01 Apr, 2017 1 commit
  8. 18 Mar, 2017 4 commits
  9. 14 Mar, 2017 1 commit
  10. 13 Mar, 2017 7 commits
  11. 01 Mar, 2016 3 commits
  12. 19 Nov, 2015 1 commit
  13. 06 Oct, 2015 1 commit
  14. 09 Jun, 2015 3 commits
  15. 13 Mar, 2015 3 commits
  16. 18 Mar, 2014 3 commits
    • Emmanuele Bassi's avatar
      Reimplement JSON_VERSION_HEX as a macro call · d3095c5f
      Emmanuele Bassi authored
      Add a JSON_ENCODE_VERSION macro and use it in JSON_VERSION_HEX.
      d3095c5f
    • Emmanuele Bassi's avatar
      Use compiler annotations to determine symbol visibility · 79466474
      Emmanuele Bassi authored
      Instead of relying on a separate file that requires being update every
      time we add a new public function we should use compiler annotations to
      let the linker know which symbols are public and exported.
      
      In order to achieve this we have to:
      
       * check for the visibility=hidden attribute
       * add -fvisibility=hidden to the linker flags
       * add a macro to annotate all public symbols
      
      While we're at it, we should copy the versioned symbols macro layout
      already used by GLib, GTK+, and other G* libraries, including the
      ability to express the range of allowed versions of JSON-GLib that
      third party code can compile against.
      79466474
    • Emmanuele Bassi's avatar
      docs: Drop the SGML mode · 50bf9cd2
      Emmanuele Bassi authored
      The whole documentation is now MarkDown.
      50bf9cd2
  17. 03 Feb, 2014 1 commit
  18. 02 Dec, 2013 1 commit
    • Emmanuele Bassi's avatar
      build: Clean up unnecessary complications · 45e06f80
      Emmanuele Bassi authored
      We don't need a custom Makefile for quiet rules: AM_V_GEN is pretty much
      all we use anyway.
      
      The Makefile.am.gtest file is not included any longer, since we switched
      to TAP and GLib's own rules for unit testing.
      45e06f80
  19. 28 Oct, 2013 1 commit
  20. 27 Oct, 2013 1 commit
  21. 16 May, 2013 1 commit