modulepackage
0.0.0-20210215103115-7a0a1641df14
Repository: https://github.com/rung/go-jsonstrconv.git
Documentation: pkg.go.dev
# README
go-jsonstrconv
Whats's this?
This library converts all values of json to string type.
Original Json
{"id":12345,"name":"John","tel":12345}
Converted
{"id":"12345","name":"John","tel":"12345"}
How to use
import "github.com/rung/go-jsonstrconv"
msg := `{"id":12345,"name":"John","tel":12345}`
converted, err := jsonstrconv.ToString([]byte(msg))
Please see example
# Packages
No description provided by the author
# Functions
ToString converts all types in your json to string type It doesn't support NDJSON now.