新しいアプリケーションを作成するときに 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/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] でフィールド名を開始するために二重引用符が必要でした\n .filters.MeteringFilter$InputStreamAdapter@5ce201; 行: 1、列: 4]"}
予期しない文字を入力している場所がわかりません。