-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[建议]不要用struct来处理config.json #14
Labels
wontfix
This will not be worked on
Milestone
Comments
ghost
added
question
labels
Jul 4, 2019
这个问题我之前有仔细想过,前几天加的那些 |
This comment has been minimized.
This comment has been minimized.
另外,削减掉目前没有实现的 RootObject::TransportSettings 后,整个JSON只有 不到 150 行,不存在很难看的 null 现象
|
Added: 相比于 ‘struct template’ json 确实会方便一些 |
ghost
added this to the Beta b0.0.1 milestone
Jul 4, 2019
只是个建议。 |
ghost
closed this as completed
Jul 4, 2019
ghost
reopened this
Jul 6, 2019
现已决定使用 JSON 库实现配置文件读写 |
ghost
removed
the
DiscussionNeeded
label
Jul 6, 2019
#18 部分对于类型要求很高的仍然使用了 struct,但主体使用的是 QJsonObject |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v2ray-core的config.json是动态变化的,而struct数据格式是固定的,并不适合用来处理配置项会不断增删的情况。然后就会出现很多很难看的
"access": null,"error": null, ...
。所以建议用json库来处理config,但是我不会C语言不知道哪个库好。The text was updated successfully, but these errors were encountered: