github.com/segmentio/encoding@v0.4.0/json/bugs/issue11/main_test.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"log"
     6  	"testing"
     7  
     8  	"github.com/segmentio/encoding/json"
     9  )
    10  
    11  func TestIssue11(t *testing.T) {
    12  	m := map[string]map[string]interface{}{
    13  		"outerkey": {
    14  			"innerkey": "innervalue",
    15  		},
    16  	}
    17  
    18  	b, err := json.Marshal(m)
    19  	if err != nil {
    20  		log.Fatal(err)
    21  	}
    22  	fmt.Println(string(b))
    23  }