Is there a library that will recursively dump/print an objects properties? I\'m looking for something similar to the console.dir() function in Firebug.
I\'m aware o
I recommend you to use the GSON Lib fo Java.
if You use Maven you can use this.
Or you can download the Jar file from here.
Here example how to use it:
Gson gson = new GsonBuilder().setPrettyPrinting().create(); String json = gson.toJson(obj); System.out.println(json);