Fix nested additional properties in JSON.
Add unit test to prevent regression with JSON and nested additional attr.