)]}'
{
  "commit": "cdc19ac4d9d5d0d94794f3cd62419e15fa6180f7",
  "tree": "e37da1f669bc682d20c20ee372773aaf4aa6cba7",
  "parents": [
    "3a10d4cabd5508b8dd155a27302173af1b9775ea"
  ],
  "author": {
    "name": "Ben Clayton",
    "email": "bclayton@google.com",
    "time": "Sun Jan 05 09:25:43 2020 +0000"
  },
  "committer": {
    "name": "Ben Clayton",
    "email": "bclayton@google.com",
    "time": "Mon Jan 06 15:00:24 2020 +0000"
  },
  "message": "Serialization: Correctly encode structs with no fields\n\nEmpty structs were being serialized as `null`, when they should have been serialized as `{}`.\n\nThis was due to the type inference on the serializer - where no calls to `field()` would result in the default `null` type.\n\nTo solve this, the `serialize(const void* object, const std::initializer_list\u003cField\u003e\u0026)` inline helper has been promoted to a virtual function (and renamed to `fields()`).\nThe JSON serializer implementation of this now first sets the object type to `object`, even if there are no fields to serialize.\n\nAdded test for this.\n\nFixes: #10\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "95fcb56d94ada67c9ef036a38b92b14db6f3716c",
      "old_mode": 33188,
      "old_path": "include/dap/serialization.h",
      "new_id": "25f774e5e7198d8efd155eec5e80979c20427487",
      "new_mode": 33188,
      "new_path": "include/dap/serialization.h"
    },
    {
      "type": "modify",
      "old_id": "3fd7cb099a2ef725977a2b4d0f3aaa8aa263ae96",
      "old_mode": 33188,
      "old_path": "include/dap/typeof.h",
      "new_id": "e2d3cc8f0cbbd85da4693731156904c580f74175",
      "new_mode": 33188,
      "new_path": "include/dap/typeof.h"
    },
    {
      "type": "modify",
      "old_id": "d3db29cd155581b1d0c5f19db20e3887d46c5003",
      "old_mode": 33188,
      "old_path": "src/json_serializer.cpp",
      "new_id": "12fdf9f41c47bb352752deb09b20f85cccc9b941",
      "new_mode": 33188,
      "new_path": "src/json_serializer.cpp"
    },
    {
      "type": "modify",
      "old_id": "6c7cc16d1ec3301ba0431a540589a9ca576a4064",
      "old_mode": 33188,
      "old_path": "src/json_serializer.h",
      "new_id": "41afe1e3b0de0b8e560766bb4093109fd028c364",
      "new_mode": 33188,
      "new_path": "src/json_serializer.h"
    },
    {
      "type": "modify",
      "old_id": "5072bcc70d4478c6d9082a1cbfdd7a2d2a0f8f51",
      "old_mode": 33188,
      "old_path": "src/json_serializer_test.cpp",
      "new_id": "53cc9a204ca81fc6857fc5b5da2d611a458778f6",
      "new_mode": 33188,
      "new_path": "src/json_serializer_test.cpp"
    }
  ]
}
