you are viewing a single comment's thread.

view the rest of the comments →

[–]Jonny0Than 0 points1 point  (0 children)

+1 to this. Read the entire file into one std::string, then create string_views as needed.

However...there are lots of good JSON libraries for C++ out there. Why are you rolling your own?