package
1.1.1
Repository: https://github.com/arrim/http-api-mock.git
Documentation: pkg.go.dev

# Functions

FormatJSON formats a JSON string.
GetJSONCompositePropertyValue returns composite property value digging inside complex JSON documents.
GetJSONProperty returns the string value of a given property inside a JSON document.
GetPropertyValue returns the json property value if input is json, otherwise tries to parse the value as query string and get property value.
GetServerAddress returns ServerAddress variable.
No description provided by the author
IsJSON checks if a string is valid JSON or not.
No description provided by the author
JoinContent returns two contents joined as JSON if both are JSONs otherwise concatenates them.
JoinJSON merges two JSON strings.
JSONDeserialize deserializes a JSON string to interface map.
JSONSerialize serializes an inteface to JSON string.
JSONSStringsAreEqual checks whether two JSON strings are actually equal JSON objects.
SetServerAddress sets ServerAddress variable.
UnWrapNonJSONStringIfNeeded wrapps non JSON string in NonJSONItem object.
WrapNonJSONStringIfNeeded wrapps non JSON string in NonJSONItem object.

# Variables

ErrorPropertyMissingInJSON when there's no such property in the JSON document.

# Structs

Cartesian gets all combinations of values for keys.
No description provided by the author
Variables is used for storing static variables.