Added formatJSON function  to JSON class .