Adding funct. to get question as json