// using above code plus: toJSON(obj).println();