Re-worked the component.json output

Removed the 'properties' property from the output and flattened the
component.json as this is what the framework expects.