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

JSONencode strings at configuration time #9

Open
cbdevnet opened this issue Dec 17, 2017 · 0 comments
Open

JSONencode strings at configuration time #9

cbdevnet opened this issue Dec 17, 2017 · 0 comments
Assignees
Labels

Comments

@cbdevnet
Copy link
Member

cbdevnet commented Dec 17, 2017

Currently, strings are used as specified in the configuration file and printed as-is into the JSON responses. This works fine with ASCII, but breaks when using anything other than that.

The easiest/cheapest (in terms of memory copies) method of solving this would be to JSON-encode these strings at configuration time and just use them like that. The command and layout names additionally will have to be URL-encoded for use in requests.

@cbdevnet cbdevnet self-assigned this Dec 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant