Make the bok api a bit more api-like (return useful JSON)