resourceloader: Change 'packageFiles' format to be JSON-compatible