Add jsonify method

In the doJsonify method, I changed the approach to using a StringBuilder to store the results instead of the Map itself.