json

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: OSL-3.0 Imports: 2 Imported by: 0

README

JSON

Non strict mode

I am trying to parse JSON from some input like this:

window.__additionalDataLoaded('extra',{"shortcode_media":999});

Where the output would be:

{"shortcode_media":999}

is something like that possible? Similar to Strict = false with XML:

https://godocs.io/encoding/xml#Decoder.Strict

Documentation

Overview

JSON parser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(buf []byte) *Decoder

func (*Decoder) Decode

func (d *Decoder) Decode(val interface{}, c byte) bool

func (*Decoder) Object

func (d *Decoder) Object(val interface{}) bool

Jump to

Keyboard shortcuts

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