Renamed tojson to todict