creates json for website correctly