92 std::string json(jsonChar);
93 std::string deserialized;
94 auto deserializedAttempt = glz::read_json<StringStreamJSON>(json);
95 if (!deserializedAttempt)
97 const std::string descriptiveError = glz::format_error(deserializedAttempt, json);
98 throw std::runtime_error(
"Failed to deserialize StringStreamJSON: " + descriptiveError);
100 auto stringStream = deserializedAttempt.value();
101 const std::string dataString = stringStream.data;
102 const char * dataPtr =
reinterpret_cast<char *
>(std::strtoull(dataString.substr(35).c_str(),
nullptr, 10));
103 size_t size = stringStream.size;
104 const std::string_view string(dataPtr, size);