basic (buggy) implementation of jsonable ai