returning propper json