Is there any way to accept both the char* AND length parameters into jsonParse()? For example, this is possible with rapidjson:
rapidjson::Document d;
d.Parse(json, length);
I'm looking to do this because I'm using a char* that is not null terminated from uWebsockets, but it does provide a length. If I add a null terminator (\0) to uWebsocket's char*, then uWebsockets has fatal issues after some time so I can't do this.
Is there any way to accept both the char* AND length parameters into jsonParse()? For example, this is possible with rapidjson:
I'm looking to do this because I'm using a char* that is not null terminated from uWebsockets, but it does provide a length. If I add a null terminator (\0) to uWebsocket's char*, then uWebsockets has fatal issues after some time so I can't do this.