{
    "result": true,
    "teams": [
{{$max := .Max}}
{{range $i, $e := .b}}
        {
            "id": "{{$e.Id}}",
            "name": "{{$e.Name}}"
        {{if eq $max $i}}
        }
        {{else}}
        },
        {{end}}
{{end}}
    ]
}

{
{{if eq .succeeds true}}

    "result": true,
    "teams": [
    {{$max := .Max}}
    {{range $i, $e := .b}}
        {
            "id": "{{$e.Id}}",
            "name": "{{$e.Name}}"
        {{if eq $max $i}}
        }
        {{else}}
        },
        {{end}}
    {{end}}
    ]

{{else}}

    "result": false,
    "err_msg": "なにかエラーが発生したようです。アクセストークンが不正とか…"

{{end}}
}

Fix that team list result returns true even if an access_token is wrong
Fix that team list result returns true even if an access_token is wrong
