Global

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.encoding.json
  • Platforms: .NET, .NET Standard 2.0, Island

Methods


Compact

 

class method Compact(dst: Reference<Buffer>; src: Slice<Byte>): error

 

static error Compact(Reference<Buffer> dst, Slice<Byte> src)

 

static func Compact(_ dst: Reference<Buffer>, _ src: Slice<Byte>) -> error

 

func Compact(dst Reference<Buffer>, src Slice<Byte>) error

Parameters:

  • dst:
  • src:

HTMLEscape

 

class method HTMLEscape(dst: Reference<Buffer>; src: Slice<Byte>)

 

static void HTMLEscape(Reference<Buffer> dst, Slice<Byte> src)

 

static func HTMLEscape(_ dst: Reference<Buffer>, _ src: Slice<Byte>)

 

func HTMLEscape(dst Reference<Buffer>, src Slice<Byte>)

Parameters:

  • dst:
  • src:

Indent

 

class method Indent(dst: Reference<Buffer>; src: Slice<Byte>; prefix: string; indent: string): error

 

static error Indent(Reference<Buffer> dst, Slice<Byte> src, string prefix, string indent)

 

static func Indent(_ dst: Reference<Buffer>, _ src: Slice<Byte>, _ prefix: string, _ indent: string) -> error

 

func Indent(dst Reference<Buffer>, src Slice<Byte>, prefix string, indent string) error

Parameters:

  • dst:
  • src:
  • prefix:
  • indent:

Marshal

 

// .NET, Island
class method Marshal(v: Object): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method Marshal(v: Object): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) Marshal(Object v)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> Marshal(Object v)

 

// .NET, Island
static func Marshal(_ v: Object) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func Marshal(_ v: Object) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func Marshal(v interface{}) (Slice<Byte>, error)
// .NET Standard 2.0
func Marshal(v interface{}) ValueTuple<Slice<Byte>, error>

Parameters:

  • v:

MarshalIndent

 

// .NET, Island
class method MarshalIndent(v: Object; prefix: string; indent: string): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
class method MarshalIndent(v: Object; prefix: string; indent: string): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
static (Slice<Byte>, error) MarshalIndent(Object v, string prefix, string indent)
// .NET Standard 2.0
static ValueTuple<Slice<Byte>, error> MarshalIndent(Object v, string prefix, string indent)

 

// .NET, Island
static func MarshalIndent(_ v: Object, _ prefix: string, _ indent: string) -> (Slice<Byte>, error)
// .NET Standard 2.0
static func MarshalIndent(_ v: Object, _ prefix: string, _ indent: string) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func MarshalIndent(v interface{}, prefix string, indent string) (Slice<Byte>, error)
// .NET Standard 2.0
func MarshalIndent(v interface{}, prefix string, indent string) ValueTuple<Slice<Byte>, error>

Parameters:

  • v:
  • prefix:
  • indent:

NewDecoder

 

class method NewDecoder(r: Reader): Reference<Decoder>

 

static Reference<Decoder> NewDecoder(Reader r)

 

static func NewDecoder(_ r: Reader) -> Reference<Decoder>

 

func NewDecoder(r Reader) Reference<Decoder>

Parameters:

  • r:

NewEncoder

 

class method NewEncoder(w: Writer): Reference<Encoder>

 

static Reference<Encoder> NewEncoder(Writer w)

 

static func NewEncoder(_ w: Writer) -> Reference<Encoder>

 

func NewEncoder(w Writer) Reference<Encoder>

Parameters:

  • w:

Unmarshal

 

class method Unmarshal(data: Slice<Byte>; v: Object): error

 

static error Unmarshal(Slice<Byte> data, Object v)

 

static func Unmarshal(_ data: Slice<Byte>, _ v: Object) -> error

 

func Unmarshal(data Slice<Byte>, v interface{}) error

Parameters:

  • data:
  • v:

Valid

 

class method Valid(data: Slice<Byte>): bool

 

static bool Valid(Slice<Byte> data)

 

static func Valid(_ data: Slice<Byte>) -> bool

 

func Valid(data Slice<Byte>) bool

Parameters:

  • data: