@elizaos/core v0.25.8 / cleanJsonResponse
cleanJsonResponse(
response
):string
Cleans a JSON-like response string by removing unnecessary markers, line breaks, and extra whitespace. This is useful for handling improperly formatted JSON responses from external sources.
• response: string
The raw JSON-like string response to clean.
string
The cleaned string, ready for parsing or further processing.