Update Main.java to work with latest Base.jar
Fix issue with JSON format