Nested json golang maps : i know im stupid but cant found same problem like mine

there i have json:


`{
    result: "true",
        data: [
         { 
          randomName: {
                 val: 2,
                 secval: 0.142412,
                 thirdval: 0.5235325,
          },
          secRandomName: {
                 val: 8,
                 secval: 0.152512,
                 thirdval: 0.6574,
          },
          thiRandomName: {
                 val: 6,
                 secval: 0.4121,
                 thirdval: 0.2123
          },
        }
    ]}`



how to make type for that json in golang, ive tryed something like this:


    type TheData struct {
	Result	string              `json:"result"`
	Data	map[string]DataInfo `json:"data"`
    }

    type DataInfo struct {
	Value	        int 		`json:"val"`
	SecondValue		float32     `json:"secval"`
	ThirdValue		float32     `json:"thirdval"`
    }


but its wrong.


p.s sorry for english, hope you understand, thx