Add json-iterator dep, remove ugorji dep

This commit is contained in:
Tim Hockin
2017-08-29 17:29:21 -07:00
parent 5728b1970a
commit 86ef9d00f8
55 changed files with 8908 additions and 491 deletions

View File

@@ -0,0 +1,15 @@
package jsoniter
import "encoding/json"
type Number string
func CastJsonNumber(val interface{}) (string, bool) {
switch typedVal := val.(type) {
case json.Number:
return string(typedVal), true
case Number:
return string(typedVal), true
}
return "", false
}