How to use curly braces in schema default value?
In your schema, for the field you want to serialize, you can add the key serialize =&gt; TRUE and use the drupal_write_record() function to write the field in the database. After, you have just to send a simple array()(without serialize()) and Drupal will do it by himself.

You can have more information in the documentation.