Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/425.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Vue.js中JSON对象的值_Javascript_Json_Vue.js - Fatal编程技术网

Javascript Vue.js中JSON对象的值

Javascript Vue.js中JSON对象的值,javascript,json,vue.js,Javascript,Json,Vue.js,我使用的是Auth0、Vue.js、Vuetify和条带 相关代码: JSON对象(我已经去掉了不相关的值) HTML: {{getProfile。https://example.com/stripe_customer_id }} {{getProfile.nickname} {{getProfile.gender} {{getProfile.locale}} {{getProfile.updated_at}} 正如您所料,由于HTML链接格式(特别是前斜杠),第一行无法工作。有没有办法提取该

我使用的是
Auth0
Vue.js
Vuetify
条带

相关代码:

JSON对象(我已经去掉了不相关的值)

HTML:

{{getProfile。https://example.com/stripe_customer_id }}
{{getProfile.nickname}
{{getProfile.gender}
{{getProfile.locale}}
{{getProfile.updated_at}}
正如您所料,由于HTML链接格式(特别是前斜杠),第一行无法工作。有没有办法提取该字段的值

不幸的是,由于Auth0规则,密钥必须采用命名空间格式(从Auth0检索到的令牌将忽略任何未采用这种格式的添加字段。我正在使用Auth0规则创建条带客户注册后(如果相关的话)

我尝试了一些方法,但都导致了
原始表达式
错误。不确定下一步要尝试什么

那么,有什么方法可以轻松提取该值吗?请提前感谢!

使用

getProfile['https://example.com/stripe_customer_id']
访问带有点或
/
的键。可以使用
对象访问任何
js
对象的属性。['key']

<v-chip disabled>{{ getProfile.https://example.com/stripe_customer_id }}</v-chip>
<v-chip disabled>{{ getProfile.nickname }}</v-chip>
<v-chip disabled>{{ getProfile.gender }}</v-chip>
<v-chip disabled>{{ getProfile.locale }}</v-chip>
<v-chip disabled>{{ getProfile.updated_at }}</v-chip>
getProfile['https://example.com/stripe_customer_id']