Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureJSONResponse ¶
EnsureJSONResponse extracts and unmarshals valid JSON content from a given string into the target interface. It trims potential code block markers and identifies the JSON object or array to parse. Returns an error if unmarshalling fails. If no JSON payload is found, it returns nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.