NOTICE: Root node on JSON dropped

Plugin maintainers,

A PR has been merged that drops the use of a root node in JSON output across the stack. This was already true for the V2 API, and thus the V2 API is unaffected by this change. Due to the age of the code that existed, as we saw in Foreman itself, there may be UI controllers or JS in your plugins that were relying on the root node to exist. An example of the change:

Previously:

{"subnet": {"id": 2}}

After change:

{"id": 2}

This change is in nightly and will be released as part of Foreman 2.3.

For the history of this discovery see the original post

4 Likes