json

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: OSL-3.0 Imports: 3 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalArray added in v1.3.0

func UnmarshalArray(data []byte, v interface{}) error

func UnmarshalObject added in v1.3.0

func UnmarshalObject(data []byte, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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