rewrote tojson method for place class