Suppose you have two of the most simple JSON objects: carsJSON, which is a map, and dogsJSON, which is a slice.
Write the required code to properly deserialize carsJSON and dogsJSON to the cars and dogs variables and print their deserialized values.
This problem uses the
bufio package to scan the whitespace-separated strings from the standard input. However, to solve this task, you don't need to know how the bufio package works. The only objective is to call the correct function from the encoding/json package to deserialize carsJSON and dogsJSON to cars and dogs, respectively, and then print their deserialized values.