▲ 11 r/cpp_questions
Dealing with garbage JSON in C++ without losing performance?
Need some advice.
Have a service that ingests tons of JSONs from crappy external APIs. The wrong data types constantly fly in (string instead of int, null instead of object). Currently parsing via RapidJSON, but I'm sick to death of writing manual checks for every field
Is there an elegant way to validate this mess without a massive CPU hit?
u/Educational-Bowl-788 — 11 days ago