You are here

public function RestWSFormatJSON::serialize in RESTful Web Services 7

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

File

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

Class

RestWSFormatJSON
A formatter to format json.

Code

public function serialize($values) {
  return drupal_json_encode($values);
}