public class Main {
public static void main(String[] args) {
Grafter grafter = new Grafter();
String configPath = "config.graft";
try {
grafter.parseConfig(configPath);
grafter.transformData();
} catch (GrafterException e) {
e.printStackTrace();
}
}
}
rule {
mappings {
"name" : "person_name"
"age" : "person_age"
"address.street" : "person_address_street"
"address.city" : "person_address_city"
}
}