how to reformat a json file in java
Okay so this is my code --> first we have a normal class: public class Fencers{ private String name,nation; private int id; public Fencers(String name, String nation,int id) { this.name = name; this.nation = nation; this.id = id; } @Override…