in reply to hash (within an array?) issue

'custom_fields' => { { "key" => "height", "value" => 500 }, { "key" => "width", "value" => 750 } },

The key custom_fields has a hash as its value.   The hash has the key { "key" => "height", "value" => 500 } and the value { "key" => "width", "value" => 750 }.   Since hash keys are converted to strings what you actually have is something like:

'custom_fields' => { 'HASH(0x8153c28)' => { "key" => "width", "value" => 750 } },

Replies are listed 'Best First'.
Re^2: hash (within an array?) issue
by ilovechristy (Novice) on Aug 30, 2009 at 03:09 UTC
    jwkrahn, your answer proved to be correct. I changed the {} to [] as follows:
    'custom_fields' => [ { "key" => "height", "value" => 500 }, { "key" => "width", "value" => 750 } ],
    and it did the trick! Thanks!
    Buddha bless you.