Move jsonString method to higher level of the hierarchy.
Add jsonString method.