weixin_39789979
weixin_39789979
2020-12-01 20:05

导入包含 null 的 json 失败


{
    "streamSettings": {
        "headers": null,
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
            "allowInsecure": true,
            "serverName": null
        },
        "wsSettings": {
            "path": "/admin"
        }
    }
}

会出现 SIGABORT 错误

该提问来源于开源项目:xyz347/x2struct

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

6条回答

  • weixin_39713763 weixin_39713763 4月前

    fixed

    点赞 评论 复制链接分享
  • weixin_39789979 weixin_39789979 4月前

    Sorry, it's not actually fixed. The same exception is thrown as well.

    AFAIK, #16 fixed this.

    点赞 评论 复制链接分享
  • weixin_39713763 weixin_39713763 4月前

    What is the type of headers and serverName?

    点赞 评论 复制链接分享
  • weixin_39789979 weixin_39789979 4月前

    std::list<std::string> for headers, std::string for serverName

    点赞 评论 复制链接分享
  • weixin_39713763 weixin_39713763 4月前

    fixed

    点赞 评论 复制链接分享
  • weixin_39789979 weixin_39789979 4月前

    let me try then

    点赞 评论 复制链接分享