在云外壳终端中更改JSON文件
这是我的文件:
$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 40.77430558, ClientID: '997', income: 44964.0106, loan: 3944.219318}]"}
我想将其更改为:
$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 30.00, ClientID: '998', income: 50000.00, loan: 20000.00}]"}
如何使用Cloud Shell终端进行操作? (在Google Cloud Platform上)
(这是Qwiklab:Vertex AI的一部分:从 https:> https:///wwwww.cloudskillskillskillsboost.google/course/course__template_templetate/333.1.llsecroute_hlsemploute_hlsemplates_hlsemploute ache = true& utm_campaign = cgc& utm_medium =网站& utm_source = gcp_training )
非常感谢您的帮助
this is my file :
$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 40.77430558, ClientID: '997', income: 44964.0106, loan: 3944.219318}]"}
I want to alter it to :
$ cat INPUT-JSON
{"endpointId": "1411183591831896064", "instance": "[{age: 30.00, ClientID: '998', income: 50000.00, loan: 20000.00}]"}
How do I do that using CLOUD SHELL Terminal ? (on google cloud platform)
(this is part of a Qwiklab : Vertex AI: Predicting Loan Risk with AutoML from https://www.cloudskillsboost.google/course_templates/3?hl=es_419&locale=fr_CA&skip_cache=true&utm_campaign=cgc&utm_medium=website&utm_source=gcp_training )
Thanks a lot for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于您只是在JSON文件中编辑值,因此您可以使用
vim
编辑或vi
编辑编辑您的文件。Since you're just editing the values in the json file, you can use the
vim
editor orvi
editor to edit your file.这可以在Google Cloud终端中完成。要编辑/更改这些值:
希望这有帮助!
This can be done in Google Cloud Terminal. To edit/alter those values:
Hope this helps!