I have a JSON response that I'd like to extract in...
# http4k
c
I have a JSON response that I'd like to extract into a custom data type (using jackson). However, the response has fields that I don't care about (and I may not know about them all). The JSON response looks like:
Copy code
{
  "Inventory": [
    {
      "Widgets": [
        {
          "name": "foo",
          "value": 2
        },
        {
          "name": "bar",
          "value": 3
        }
      ]
    }
  ],
  "OtherData": {}
}
I don't care about "value" in widgets and I want to ignore "OtherData"