Skip to content

This library converts all values of json to string type

License

Notifications You must be signed in to change notification settings

rung/go-jsonstrconv

Repository files navigation

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

About

This library converts all values of json to string type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published