optimizelyjson

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package optimizelyjson //

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptimizelyJSON

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

OptimizelyJSON holds the underlying structure of the object

func NewOptimizelyJSONfromMap

func NewOptimizelyJSONfromMap(data map[string]interface{}) *OptimizelyJSON

NewOptimizelyJSONfromMap constructs the object

func NewOptimizelyJSONfromString

func NewOptimizelyJSONfromString(payload string) (*OptimizelyJSON, error)

NewOptimizelyJSONfromString constructs the object out of string payload

func (*OptimizelyJSON) GetValue

func (optlyJson *OptimizelyJSON) GetValue(jsonPath string, schema interface{}) error

GetValue populates the schema passed by the user - it takes primitive types and complex struct type

func (*OptimizelyJSON) ToMap

func (optlyJson *OptimizelyJSON) ToMap() map[string]interface{}

ToMap returns the native representation of json (map of interface)

func (*OptimizelyJSON) ToString

func (optlyJson *OptimizelyJSON) ToString() (string, error)

ToString returns the string representation of json

Jump to

Keyboard shortcuts

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