writes a json object to a file . the object is passed to #savejson object , outputstream with file stream.it will converts the object to utf-8 string . if parent file does not exists , it is automatically created via file #mkdir not mkdirs . concode_field_sep UtilShell uSh concode_elem_sep ExceptionShell exSh concode_elem_sep JsonShell instance concode_elem_sep String prefsRoot concode_elem_sep String prefsRootProperty concode_field_sep ObjectType mapJsonTo concode_elem_sep Object fromJsonString concode_elem_sep ObjectType loadAndMapFromPrefsClass concode_elem_sep JsonBuilder.ArrayBuilder buildArray concode_elem_sep ObjectType mapJsonStringTo concode_elem_sep ObjectType loadAndMapJsonTo concode_elem_sep ObjectType loadAndMapJsonTo concode_elem_sep ObjectType loadAndMapJsonTo concode_elem_sep ObjectType loadAndMapFromPrefs concode_elem_sep ObjectType loadAndMapFromPrefs concode_elem_sep ObjectType loadAndMapFromPrefs concode_elem_sep String getPrefsEntryName concode_elem_sep Object mapJsonFrom concode_elem_sep Object mapJsonFrom concode_elem_sep ObjectType loadAndMapArgs concode_elem_sep JsonToValueMapper newJsonToValueMapper concode_elem_sep void saveAndMapToPrefs concode_elem_sep void saveAndMapToPrefs concode_elem_sep void saveAndMapToPrefs concode_elem_sep void saveAndMapToPrefs concode_elem_sep ObjectType loadAndMapFromPrefsAndArgs concode_elem_sep JsonFromValueMapper newJsonFromValueMapper concode_elem_sep Object loadJson concode_elem_sep Object loadJson concode_elem_sep Object loadJson concode_elem_sep JsonShell v concode_elem_sep JsonBuilder.MapBuilder buildMap concode_elem_sep File getPath concode_elem_sep String toJsonString concode_elem_sep File getPrefsRoot
void function ( Object arg0 , File arg1 ) { try { File loc0 = arg1 . getParentFile ( ) ; if ( loc0 != null && ! loc0 . exists ( ) ) { loc0 . mkdir ( ) ; } FileOutputStream loc1 = new FileOutputStream ( arg1 ) ; saveJson ( arg0 , loc1 ) ; loc1 . close ( ) ; } catch ( Exception loc0 ) { exSh . throwWrapped ( loc0 ) ; } }