'Alter JSON file in CLOUD SHELL Terminal
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
Solution 1:[1]
Since you're just editing the values in the json file, you can use the vim
editor or vi
editor to edit your file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sakshi Gatyan |