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
Click to show internal directories.
Click to hide internal directories.