У меня есть API с методом PUT в AWS Api Gateway. Я передаю объект в теле запроса с типом содержимого application / json
{
"uuid": "i_1",
"insiderName": "Sam Keys",
"profileImage": "https://do6gbw1x8hs3.cloudfront.net/spree/cover_images/53977/default/400.jpg",
"gender": "Female",
"fullDescription": "This is the full description",
"shortDescription": "This is the short description",
"tribes": ["Adventurer"]
}
Я передаю key
, называемый племенами, и значение в виде массива. Но я получаю эту ошибку:
{"message": "Could not parse request body into json: Unexpected character (\'A\' (code 65)): was expecting comma to separate Object entries\n at [Source: [B@5d62dfa1; line: 8, column: 17]"}
Я полагаю, что ошибка вызвана массивом в теле запроса