convert stdClass to arrays
leads, pagination, iterators, tests
docblock