Skip to content

parseDroughtMonitor ​

Import from: @xbbg/xnews, @xbbg/xnews/parsers

parseDroughtMonitor(body): DroughtMonitorRow[]

Defined in: src/sources/droughtmonitor.ts (declaration: sources/droughtmonitor.d.ts:29)

Parses the JSON representation selected by the API's Accept header.

The JSON surface returns camelCase keys (mapDate, d0) and an ISO datetime, while the XML surface returns PascalCase (MapDate, D0) and a compact YYYYMMDD. Both spellings are read so a negotiated representation change degrades to nothing worse than the fields it actually renamed.

Parameters ​

body ​

string

Returns ​

DroughtMonitorRow[]

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.