/** * Write a property string to this encoder's writer. * @param path provides the property's full path. * @param value provides the property's value, it may be any valid pegasus Data binding type (DataList, DataMap, * String, Int, Long, Float, Double, Boolean, ByteArray) */ private void writeProperty(List<String> path, Object value) throws IOException { indent(); write("@"); write(pathToString(path)); write(" = "); write(toJson(value)); newline(); }
write(toJson(field.getDefault()));