jsonizing
jsonized survey. now needs debugging in the js