You are here

public function RestWSFormatJSON::unserialize in RESTful Web Services 7.2

Same name and namespace in other branches
  1. 7 restws.formats.inc \RestWSFormatJSON::unserialize()

File

./restws.formats.inc, line 477
RESTful web services module formats.

Class

RestWSFormatJSON
A formatter to format json.

Code

public function unserialize($properties, $data) {
  $values = drupal_json_decode($data);
  $this
    ->getPropertyValues($values, $properties);
  return $values;
}