Skip to content

Commit

Permalink
fix JsonView:GetBool (#2852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmklix authored Feb 13, 2024
1 parent 2fa824e commit 0b6470c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aws-cpp-sdk-core/source/utils/json/JsonSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ bool JsonView::GetBool(const Aws::String& key) const
assert(m_value);
auto item = cJSON_AS4CPP_GetObjectItemCaseSensitive(m_value, key.c_str());
assert(item);
return item->valueint != 0;
return cJSON_AS4CPP_IsTrue(item) != 0;
}

bool JsonView::AsBool() const
Expand Down

0 comments on commit 0b6470c

Please sign in to comment.