package main import ( "encoding/json" "os" ) func main() { enc := json.NewEncoder(os.Stdout) enc.Encode([]byte{ 0x00, 0x00, }) }