2️⃣

1.2 Practice: Parsing JSON

4.2 Parsing JSON

Here, you’ll try to write some code that parses a JSON string.

Information List

{ "companyName": "Walmart", "NumOfEmployees": 2300000, "Revenue": 1.52859e11, "Rating": "Convenient", "usCorp": true }, { "companyName": "Spotify", "NumOfEmployees": 6617, "Revenue": 2.33e10, "Rating": "Best Music Streaming Service", "usCorp": false }
Given the following information list of companies, store it in a JSON string, and print out Company 1’s name, Number of Employees, and Revenue (company 0 is walmart).

Previous Section

1️⃣
1.1 JSON
 
⚖️
Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.