public static void writeJsonToPath(GenericKeyczar input,String path){
  try {
    FileOutputStream output=new FileOutputStream(path);
    BufferedWriter writer=new BufferedWriter(new OutputStreamWriter(output,"UTF-8"));
    JsonWriter.write(input,writer);
    writer.close();
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
}

public static void writeJsonToPath ( GenericKeyczar input , String path ) { try { FileOutputStream output = new FileOutputStream ( path ) ; BufferedWriter writer = new BufferedWriter ( new OutputStreamWriter ( output , "UTF-8" ) ) ; JsonWriter . write ( input , writer ) ; writer . close ( ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
writes input to a json file at path .
