Where can I find such dataset.
For each object, I would want name, size, distance from sun (if applicable), mass. Can be separate dataset for all moons and for all planets. (and maybe asteroids).
Devstronomy project provides the datasets for planets (plus Pluto) and their satellites(moons) in accessible formats (CSV, JSON, SQL), available for download. The datasets originate from NASA Jet Propulsion Laboratory. Check the site for details.
Edit: please note that I'm the author of Devstonomy project. I had a similar issue and did not find a solution. So I've provided the datasets on the Devstronomy site.