- used __tojson instead of __tostring