Using the JSON to Golang Map tool

Report a typo

Lena is working with the floatrates JSON data feed; before writing any code, she wants to know what the JSON object returned by floatrates would look like, converted into its Go Interface Map representation.

Below is an extract from the floatrates JSON response for USD conversion rates:

{
   "eur":{
      "code":"EUR",
      "alphaCode":"EUR",
      "numericCode":"978",
      "name":"Euro",
      "rate":0.91998122665272,
      "date":"Fri, 8 Apr 2022 11:55:01 GMT",
      "inverseRate":1.0869787024225
   }
}

Since you always pay attention to every detail of the topic theory, you surely remember that the last theory section talked about the JSON to Golang Map tool, used to convert a JSON object into a Go interface representation.

Your task is to help Lena use the JSON to Golang Map tool to convert the above extract of the JSON object returned by floatrates, and then simply copy and paste its correct Go Interface Map representation to the textbox below:

Enter a short text
___

Create a free account to access the full topic