Closed
Description
The following program (written by a complete go n00b)
package main
import "fmt"
import "encoding/json"
func main() {
mapD := map[string]float64{"apple": 5e-6, "lettuce": 0.0}
mapB, _ := json.Marshal(mapD)
fmt.Println(string(mapB))
}
returns
{"apple":5e-06,"lettuce":0}
it should rather return
{"apple":0.000005,"lettuce":0}
Rationale for this request:
chakra-core/ChakraCore#149