avoid using deprecated metho
use new json API