convert taught responses dictionary to json