first remove the ConfiguredAttribute, then create a JSON of the correct objects. Fixes #65