ninjarab / stk

Stk is a free, real time stock quotes, charts and market overview.
https://stk.exchange/
17 stars 0 forks source link

Handle type mismatch while parsing JSON #3

Closed ninjarab closed 6 years ago

ninjarab commented 6 years ago

The iEx API is not consistent, for instance when data is not available for the exDividendDate instead of returning an empty string or null, it returns 0.

Error at array index 0: (ErrorAtProperty "stats" (ErrorAtIndex 0 (ErrorAtProperty "exDividendDate" (TypeMismatch "String" "Number"))))