github.com/kamalshkeir/kencoding@v0.0.2-0.20230409043843-44b609a0475a/json/bugs/issue11/main_test.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"log"
     6  	"testing"
     7  
     8  	"github.com/kamalshkeir/kencoding/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  }