3

// Pouring over idiot API developer's crappy documentation.

Example:
Goal Detail
* From Docs "table_breakdown key will return an array but will always only contain one json object.
json -> "table_breakdown" [
{
"field" : "value",
"etc" : "etc"
}
]

WHYYYY!!!!

Comments
  • 1
    If they always return an array, I don't see any issue. Might even break less code to return an array of size 0 than null, undefined & other billions dollars errors.

    At least in fucked up languages like JS it has an added benefit of boxing the value in a functor which happen to work with one or multiple values.

    I'd love to see more API using array even for single value when I do f'ing JS.
Add Comment