whapi_to_pretty_json: Convert R objects into pretty JSON (character)
Description
Wrapper around jsonlite::toJSON() to serialize lists/data.frames into
human-readable JSON for logging or persistence.
Returns NA_character_ if jsonlite is not installed or conversion fails.
Usage
whapi_to_pretty_json(x)
Value
Character scalar containing pretty-printed JSON, or NA_character_.