Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions include/triton/common/triton_json.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// Copyright 2020-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -47,6 +47,7 @@
#include <rapidjson/error/en.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/rapidjson.h>
#include <rapidjson/reader.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>

Expand Down Expand Up @@ -177,7 +178,8 @@ class TritonJsonImpl {
TRITONJSON_STATUSRETURN(
std::string("JSON parsing only available for top-level document"));
}
const unsigned int parseFlags = rapidjson::kParseNanAndInfFlag;
const unsigned int parseFlags =
rapidjson::kParseNanAndInfFlag | rapidjson::kParseIterativeFlag;
document_.Parse<parseFlags>(base, size);
if (document_.HasParseError()) {
TRITONJSON_STATUSRETURN(std::string(
Expand Down
Loading