Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我按照这个网站上的说明进行操作,前两个(profile.txt 和 profile.json)应该返回一个 .json 配置文件对象。相反,我只是得到原始数字的输出。这是几周前的工作,所以我不确定发生了什么变化?
https://console.bluemix.net/docs/services/personality-insights/getting-started.html#getting-started-tutorial
因此无论出于何种原因,它默认返回原始文本值,而不是教程中指定的结构化 JSON 文件。提出了一个问题,但同时您可以简单地添加:
--header "Accept: application/json"
这将确保您获得结构化的 json 文件。