Replaced AzFramework::FileFunc JSON utils API calls with AzCore::JsonUtils APIs that appear to have been duplicated. Also fixed up improper Project Configurator -> Project Manager comment replacements.
Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
@@ -209,6 +209,11 @@ namespace AZ
|
||||
|
||||
AZ::Outcome<rapidjson::Document, AZStd::string> ReadJsonString(AZStd::string_view jsonText)
|
||||
{
|
||||
if (jsonText.empty())
|
||||
{
|
||||
return AZ::Failure(AZStd::string("Failed to parse JSON: input string is empty."));
|
||||
}
|
||||
|
||||
rapidjson::Document jsonDocument;
|
||||
jsonDocument.Parse<rapidjson::kParseCommentsFlag>(jsonText.data(), jsonText.size());
|
||||
if (jsonDocument.HasParseError())
|
||||
|
||||
Reference in New Issue
Block a user