json

package module
v0.0.0-...-16ebfe2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2017 License: MIT Imports: 1 Imported by: 1

README

gopherjs-json

Convenience functions for interacting with JSON in GopherJS

Inspired by https://github.com/gopherjs/gopherjs/wiki/JavaScript-Tips-and-Gotchas

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(o *js.Object) (res string, err error)

Marshal uses the browser builtin JSON.stringify function and wraps it such that any exceptions thrown are returned as errors.

func Unmarshal

func Unmarshal(s string) (res *js.Object, err error)

Unmarshal uses the browser builtin JSON.parse function and wraps it such that any exceptions thrown are returned as errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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