收藏
回答

第三方平台上传代码85048, errMsg: parse ext.json failed?

第三方平台上传代码一直提示ext_json解析错误,下面是ext_json字段,帮忙看看哪里错了:

{
  ext_json: "{\"extAppid\":\"xxx\",\"directCommit\":true,\"ext\":{\"name\":\"指尖侦探馆\",\"attr\":{\"host\":\"open.qq.com\",\"userId\":\"xxx\"}},\"extPages\":{\"pages/home/index\":{\"navigationBarTitleText\":\"指尖小店\"}, \"pages/me/index\":{\"navigationBarTitleText\":\"个人中心\"}},\"pages\":[\"pages/home/index\",\"pages/me/index\"],\"window\":{\"backgroundTextStyle\":\"light\",\"navigationBarBackgroundColor\":\"#fff\",\"navigationBarTitleText\":\"指尖导航\",\"navigationBarTextStyle\":\"black\"},\"tabBar\":{\"list\":[{\"pagePath\":\"pages/home/index\",\"text\":\"商城首页\"},{\"pagePath\":\"pages/me/index\",\"text\":\"个人中心\"}]}}"
}


补充:后端使用node开发

回答关注问题邀请回答
收藏

1 个回答

  • 拾忆
    拾忆
    2020-11-25
    let ext_json={"extAppid":"xxx","directCommit":true,"ext":{"name":"指尖侦探馆","attr":{"host":"open.qq.com","userId":"xxx"}},"extPages":{"pages/home/index":{"navigationBarTitleText":"指尖小店"}, "pages/me/index":{"navigationBarTitleText":"个人中心"}},"pages":["pages/home/index","pages/me/index"],"window":{"backgroundTextStyle":"light","navigationBarBackgroundColor":"#fff","navigationBarTitleText":"指尖导航","navigationBarTextStyle":"black"},"tabBar":{"list":[{"pagePath":"pages/home/index","text":"商城首页"},{"pagePath":"pages/me/index","text":"个人中心"}]}}
    ext_json=JSON.stringify(ext_json);
    
    2020-11-25
    有用
    回复 4
    • susan🍭
      susan🍭
      2020-11-25
      谢谢回答 ,这样做了之后接口发送的ext_json数据前后多了双引号?
      2020-11-25
      回复
    • 拾忆
      拾忆
      2020-11-25回复susan🍭
      2020-11-25
      回复
    • susan🍭
      susan🍭
      2020-11-26回复拾忆
      感谢感谢,有心了,已解决
      2020-11-26
      回复
    • 拾忆
      拾忆
      2020-11-26回复susan🍭
      是哪里的问题呢?
      2020-11-26
      回复
登录 后发表内容
问题标签