{
"program_id": "CC1234",
"offerings": [{
"offering_id": "RP445555",
"location_id": "B2222"
}],
"member_id": "10000-01",
"registration_type": "online",
"dry_run": false
}
array(
"member_id" => $_COOKIE['m_'],
"program_id" => $program_id,
"offerings" => array(
"offering_id" => $offering_id,
"location_id" => $location_id
),
"registration_type" => "online"
)
$json = '
{
"program_id": "CC1234",
"offerings": [{
"offering_id": "RP445555",
"location_id": "B2222"
}],
"member_id": "10000-01",
"registration_type": "online",
"dry_run": false
}';
$php_array = json_decode($json, true);
var_export($php_array);
array (
'program_id' => 'CC1234',
'offerings' =>
array (
0 =>
array (
'offering_id' => 'RP445555',
'location_id' => 'B2222',
),
),
'member_id' => '10000-01',
'registration_type' => 'online',
'dry_run' => false,
)