class RestWSFormatJSON in RESTful Web Services 7
Same name and namespace in other branches
- 7.2 restws.formats.inc \RestWSFormatJSON
A formatter to format json.
Hierarchy
- class \RestWSBaseFormat implements RestWSFormatInterface- class \RestWSFormatJSON
 
Expanded class hierarchy of RestWSFormatJSON
2 string references to 'RestWSFormatJSON'
- hook_restws_format_info in ./restws.api.php 
- Define restws compatible formats.
- restws_restws_format_info in ./restws.module 
- Implements hook_restws_format_info().
File
- ./restws.formats.inc, line 196 
- RESTful web services module formats.
View source
class RestWSFormatJSON extends RestWSBaseFormat {
  public function serialize($values) {
    return drupal_json_encode($values);
  }
  public function unserialize($data) {
    return drupal_json_decode($data);
  }
} 
      