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

cloud function解析深层嵌套的json数据 #5

Open
mrdulin opened this issue Oct 15, 2018 · 0 comments
Open

cloud function解析深层嵌套的json数据 #5

mrdulin opened this issue Oct 15, 2018 · 0 comments

Comments

@mrdulin
Copy link
Owner

mrdulin commented Oct 15, 2018

问题: 查看该cloud function的日志,深层嵌套的ips显示[object]而不是{ip1: xxx, ip2: xxx}ips数据是否解析成功,能否通过user.ips.ip1获取?

image

结论:尽管日志显示的是ips: [object],但数据解析成功,可以通过user.ips.ip1获取
image

测试源码:https://github.com/mrdulin/nodejs-gcp/tree/master/src/cloud-functions/nested-data

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