RESTws POST List (text) field type Error I'm using RESTws and POSTing a JSON object to "/node". Everything works fine until I include a List text field (checkbox type). The field in question is:

...
"field_days_closed_v": ["Monday", "Tuesday"],
...


When I post I get this error:


  Recoverable fatal error: Argument 2 passed to RestWSBaseFormat::getResourceReferenceValue() 
      must be of the type array, string given, called in .../restws/restws.formats.inc on line 278 and defined in RestWSBaseFormat-&gt;getResourceReferenceValue() line 311


My JSON is:

{
  "body": {
    "format": "filtered_html",
    "summary": "",
    "value": "test"
  },
  "field_opening_times_t": {
    "format": "filtered_html",
    "value": "Daily"
  },
  "field_price_category": "",
  "field_price_text_t": {
    "format": "filtered_html",
    "value": "&lt;p&gt;Free entry&lt;/p&gt;"
  },
  "title": "Mark test test test",
  "type": "primary_article"
}


The field is a List(text) and the widget type is Check boxes/radio buttons. Values are:

Monday|Monday
Tuesday|Tuesday
Wednesday|Wednesday
Thursday|Thursday
Friday|Friday
Saturday|Saturday
Sunday|Sunday


Am I right in thinking it is just an array that should be POSTed?

Any ideas?
The JSON format for list (text) for checkbox type would looks like follows

{"title":"My Day","type":"page","field_days_closed_v":{"und":["sunday", "monday"]}}


I've tested this, and working fine.

Here field_days_closed_v is the machine name of the  List text field (checkbox type). similarly sunday, monday are the values of checkbox type so change them accordingly.

Hope this helps. :)