Changed the static toJson function to return the result of its computation instead of modifying a StringBuilder.
Changed the static toJson function to return the result of its computation instead of modifying a StringBuilder.

cpythoud/beanmaker,cpythoud/beanmaker