created json Api for surveys