json

package
v0.0.0-...-98b6310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToJSONObject

func ToJSONObject(jsonString string, obj interface{}) error

将json字符串转换为对象,如果字符串为空,则obj为nil,err也是nil 如果不是空,则调用json.Unmarshal并返回

func ToJSONString

func ToJSONString(obj interface{}) string

解析对象为json字符串,如果obj为nil,那么返回 空字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL