myjson

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

myjson

介绍

go实现的简易json object

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonObject

type JsonObject struct {
	// contains filtered or unexported fields
}

func NewJsonArray

func NewJsonArray() *JsonObject

func NewJsonObject

func NewJsonObject() *JsonObject

func (*JsonObject) Append

func (jobj *JsonObject) Append(value interface{})

func (JsonObject) AsArray

func (jobj JsonObject) AsArray() []*JsonObject

func (JsonObject) AsBool

func (jobj JsonObject) AsBool() bool

func (JsonObject) AsFloat

func (jobj JsonObject) AsFloat() float64

func (JsonObject) AsInt

func (jobj JsonObject) AsInt() int64

func (JsonObject) AsMap

func (jobj JsonObject) AsMap() map[string]*JsonObject

func (JsonObject) AsString

func (jobj JsonObject) AsString() string

func (JsonObject) AsStrut

func (jobj JsonObject) AsStrut(dst interface{})

func (JsonObject) Get

func (jobj JsonObject) Get(key string) *JsonObject

func (JsonObject) MarshalJSON

func (jobj JsonObject) MarshalJSON() ([]byte, error)

func (*JsonObject) Put

func (jobj *JsonObject) Put(key string, value interface{})

func (JsonObject) ToJsonString

func (jobj JsonObject) ToJsonString() string

func (*JsonObject) UnmarshalJSON

func (jobj *JsonObject) UnmarshalJSON(src []byte) error

Jump to

Keyboard shortcuts

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