This method & the constructor will convert the desktop file at runtime to a JSON object, which far more expensive to just reading a JSON file.
Most of the usages are compatibility logic anyways and in case of KPackage the usages should be phased out.
If consumers want minimal changes until T14564 is implemented the kcoreaddons_desktop_to_json cmake macro can be used to convert the file at buildtime.
The only legitimate usecases are the DBus runners in KRunner, but there the usage is only internal and could be ported to KConfig after KF6 branching. The Dbus runners should be compatible from KF5->KF6.
See also discussion in https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/117#note_279605.
If there are other usecases please add them here.