sharedutils/jsonUtils/jsonUtils.go

10 lines
165 B
Go
Raw Normal View History

2022-11-01 23:42:40 +00:00
package jsonutils
import "encoding/json"
func ConvertToJSON(g interface{}) []byte {
g_json, err := json.Marshal(g)
_ = err //TODO: Check Errors
return g_json
}