As of December 5, 2017, inventory_quantity and inventory_policy fields accessed through a JSON Liquid filter are deprecated. The JSON filter will not output those fields for shops created after that date.
This is a companion discussion topic for the original entry at https://shopify.dev/changelog/the-json-liquid-filter-will-no-longer-output-the-inventory_quantity-and-inventory_policy-fields