Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

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

@mrdulin

Description

@mrdulin

问题: 查看该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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions