Upgrade runtime to new json format.