fixed bug in apiJson