I would like for a simple way to print a java object or to say it another way, serialize the object as a string. I would like to see the values โโof all the variables contained within the object, and if there are more objects (like a list or something else), it should also print the material in that object. Basically, it will be something like JSON coding, but JSON does not support infinity, and I need to see if there is infinity or NaN in one of the double or float values.
How can i do this?
source share