Skip to content

Possible to pass length to jsonParse()? #6

@websocket98765

Description

@websocket98765

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions