package
Version:
v0.0.0-...-98b6310
Opens a new window with list of versions in this module.
Published: Sep 19, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ToJSONObject(jsonString string, obj interface{}) error
将json字符串转换为对象,如果字符串为空,则obj为nil,err也是nil
如果不是空,则调用json.Unmarshal并返回
func ToJSONString(obj interface{}) string
解析对象为json字符串,如果obj为nil,那么返回 空字符串
Source Files
¶
Click to show internal directories.
Click to hide internal directories.