Fix for printing out JSON object