在Javascript中读取Json斜杠

在Javascript中读取Json斜杠,javascript,json,Javascript,Json,我正在通过javascript读取JSON文件。由于正斜杠,我今天在获取文本时遇到困难。通过执行:{{hours.results[0].today},我可以成功获得今天的。我今天如何获得/_text?我试过: 今天\/\u文本 {"offset":0,"results":[{"today/_text":"Today:YES","today/_source":"/hours/1","today":"2,3,4"}]} today/\\u text {"offset":0,"results":

我正在通过javascript读取JSON文件。由于正斜杠,我今天在获取文本时遇到困难。通过执行:
{{hours.results[0].today}
,我可以成功获得今天的。我今天如何获得
/_text
?我试过:

今天\/\u文本

 {"offset":0,"results":[{"today/_text":"Today:YES","today/_source":"/hours/1","today":"2,3,4"}]}
today/\\u text

 {"offset":0,"results":[{"today/_text":"Today:YES","today/_source":"/hours/1","today":"2,3,4"}]}
today/\u text

 {"offset":0,"results":[{"today/_text":"Today:YES","today/_source":"/hours/1","today":"2,3,4"}]}
今天\\/\u文本

 {"offset":0,"results":[{"today/_text":"Today:YES","today/_source":"/hours/1","today":"2,3,4"}]}
hours.results[0][“today/_text”]
应该可以做到这一点

hours.results[0]
返回一个将其作为键的对象,这是访问相关属性的最简单方法