Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping string before parsing #1743

Closed
LumineBot opened this issue Sep 9, 2019 · 1 comment
Closed

Escaping string before parsing #1743

LumineBot opened this issue Sep 9, 2019 · 1 comment

Comments

@LumineBot
Copy link

Hi, I'm making a tool to manage content of a certain game assets which load various files, including json.

Now I have std::string loaded from a custom content pipeline, however I can't pass it directly to json::parse because it need to be escaped. It's annoying to be honest if you ask me.

Do library provide function to escape my string?

@LumineBot
Copy link
Author

Whoops my bad, when i load string from the content pipeline, I didn't parse the string correctly from unsigned char*, i didn't specify size (and it seems due to no null terminating string)

it's completely not library fault

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant