Maybe we can rename this function to loadComponentConfigFromJSON while it only accepts json params?