Oddly enough, I did not find this.
What is the easiest way to convert an object to a JSON string? (Boundary cases, such as cycles in graphs of objects, are not of great interest to me. We will find a solution to the simple case of class A containing some objects of classes B, C, D and some primitives).
Support for the base collection is required.
source
share