transformation json => array