rung / go-jsonstrconv

This library converts all values of json to string type

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 85.8%Language:Makefile 14.2%