Currently we have both config and metadata in the metadata.desktop files. This means we can not simply convert the desktop files to json, but currently need to install the desktop files and convert them to json at runtime, every time kpackage queries the respective packages
My proposal would be to store the config separately. From looking at the code, it seems like the plasmarc filename is somehow used when reading, but not consistently checked before the metadata.desktop file is opened.