Android Question Best way to convert this (php array of arrays)

bconline

Member
Licensed User
Longtime User
Hi Friends, i've in PHP this array of arrays

PHP:
$jsonRquest = array (
            'array_bultos' =>
            array (
                0 =>
                array (
                ),
                1 =>
                array (
                    'peso' => $r->pe1,
                    'largo' => $r->la1,
                    'ancho' => $r->an1,
                    'alto' => $r->al1,
                ),
                2 =>
                array (
                    'peso' => $r->pe2,
                    'largo' => $r->la2,
                    'ancho' => $r->an2,
                    'alto' => $r->al2,
                ),
                3 =>
                array (
                    'peso' => $r->pe3,
                    'largo' => $r->la3,
                    'ancho' => $r->an3,
                    'alto' => $r->al3,
                ),
                4 =>
                array (
                    'peso' => $r->pe4,
                    'largo' => $r->la4,
                    'ancho' => $r->an4,
                    'alto' => $r->al4,
                ),
                5 =>
                array (
                    'peso' => $r->pe5,
                    'largo' => $r->la5,
                    'ancho' => $r->an5,
                    'alto' => $r->al5,
                ),
            ),
            'codigos_origen' => $r->cpOrigenSolo,
            'poblacion_salida' => $r->poblacionOrigen,
            'iso_pais_salida' => $r->origen,
            'codigos_destino' => $r->cpDestinoSolo,
            'poblacion_llegada' => $r->poblacionDestino,
            'iso_pais_llegada' => $r->destino,
            'cod_promo' => '',
            'usuario_servicio' => 'hideen',
            'password_servicio' => 'hidden',
            'servicio' => 'api',
        );

my question is simple, what is the best way to obtain $jsonRquest in B4X?

Many thanks.
 
Top