Documentation ¶
Overview ¶
Package jsonutils offers additional JSON processing helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareRawJSON ¶
CompareRawJSON verifies that both given json raw messages match whilst ignoring the key order and any whitespace differences. The parameters can be of type json.RawMessage as this is an alias for []byte. Any difference will be returned as error.
func ValidateRemarshal ¶
ValidateRemarshal verifies that the json source and the given object match when being marshalled. This allows to detect changes in struct fields that are returned from APIs and not handled in the struct type. Any difference will be returned as error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.