public String toJSON ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "{\n" ) ; buffer . append ( "\tfile: \'" ) . append ( file . getAbsolutePath ( ) ) . append ( "',\n" ) ; buffer . append ( "\tformat: \'" ) . append ( format ) . append ( "',\n" ) ; buffer . append ( "\taddressing: \'" ) . append ( addressing ) . append ( "',\n" ) ; buffer . append ( "\tendianness: \'" ) . append ( endianness ) . append ( "',\n" ) ; buffer . append ( "\toperatingSystem: \'" ) . append ( operatingSystem ) . append ( "',\n" ) ; buffer . append ( "\ttype: \'" ) . append ( type ) . append ( "',\n" ) ; buffer . append ( "\tinstructionSet: \'" ) . append ( instructionSet ) . append ( "'\n" ) ; buffer . append ( "}" ) ; return buffer . toString ( ) ; }
Returns a JSON representation of the object .