2

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

M. D.
  • 35
  • 6

2 Answers2

0

Since you're just editing the values in the json file, you can use the vim editor or vi editor to edit your file.

Sakshi Gatyan
  • 1,903
  • 7
  • 13
0

This can be done in Google Cloud Terminal. To edit/alter those values:

  1. Click on "Open Editor" above your terminal in the top right corner.
  2. Then you modify the values via the JSON File.
  3. When finished click on "Open Terminal", then rerun your last script to notice the different outcome.

Hope this helps!

hd84335
  • 8,815
  • 5
  • 34
  • 45