Added a function to serialize into json the site.