Added support for loading and saving segmented json.