Using the JSON-to-Go struct converter

Report a typo

Emma is working with the CoinDesk JSON API. Before writing any code she wants to know what the JSON object returned by CoinDesk would look like, converted into its Go struct representation.

Since you always pay attention to every detail of the topic theory, you surely remember that the last theory section mentioned the JSON-to-Go struct converter, a convenient tool to automatically generate a Go struct type that follows the same structure as a certain JSON object.

Your task is to help Emma use the JSON-to-Go struct tool to convert the extract of the JSON response returned by CoinDesk, and then simply copy and paste its actual Go struct type representation to the textbox below:

Enter a short text
___

Create a free account to access the full topic