json

package
v0.0.0-...-309cb8d Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2017 karma.run AG. All rights reserved. Use of this source code is governed by an AGPL license that can be found in the LICENSE file.

Package codec/json is DEPRECATED and should not be used. It exists for historic reasons and will be removed in the near future.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(json JSON, model mdl.Model, path []string) (val.Value, err.OffsetError)

Types

type JSON

type JSON []byte

func Encode

func Encode(value val.Value) JSON

func (JSON) MarshalJSON

func (j JSON) MarshalJSON() ([]byte, error)

func (JSON) String

func (j JSON) String() string

func (*JSON) UnmarshalJSON

func (j *JSON) UnmarshalJSON(json []byte) error

type JsonCodec

type JsonCodec struct{}

func (JsonCodec) Decode

func (dec JsonCodec) Decode(json []byte, model mdl.Model) (val.Value, err.Error)

func (JsonCodec) Encode

func (dec JsonCodec) Encode(v val.Value) []byte

Jump to

Keyboard shortcuts

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