我有一个数组(Ruby on Rails),例如:
[{"name"=>"Start Time", "id"=>3, "value"=>"15:00"},
{"name"=>"End Time", "id"=>4, "value"=>"16:00"}]
如何将此数组分配给一个键,使其看起来像:
{"custom_fields": [{"name"=>"Start Time", "id"=>3, "value"=>"15:00"},
{"name"=>"End Time", "id"=>4, "value"=>"16:00"}]}