Switched the json parser to rapidjson -> allow for custom streams