在创建新应用程序时遵循 Apache Usergrid 文档时遇到解析错误。
curl -H "Authorization: Bearer <authorization token>" -H "Content-Type:
application/json" -X POST -d '{ "name" : "resturantapp" }' http://localhost:8080
/management/orgs/ResturantOrg/apps
我遵循的指令是:
curl -H "Authorization: Bearer [the management token from above]" \
-H "Content-Type: application/json" \
-X POST -d '{ "name":"myapp" }' \
http://localhost:8080/management/orgs/myfirstorg/apps
但我得到的错误是: curl: (3) [globbing] unmatched close括号/bracket at pos 14 {"error":"json_parse","timestamp":1410189449209,"duration":0,"exception": “org.co dehaus.jackson.JsonParseException”,“error_description”:“意外字符('n'(代码 110)):在 [来源:org.apache.usergrid.rest .filters.MeteringFilter$InputStreamAdapter@5ce201;行:1,列:4]"}
我看不到我在哪里输入了 Unexpected 字符。