public function as_json($encoded = true) {
    $result = $this->api_friendly_values();
    return $encoded ? json_encode($result) : $result;
  }
public function as_json($encoded = true) {
    $result = $this->api_friendly_values();
    return $encoded ? json_encode($result) : $result;
  }
public function as_json ( $ encoded = true ) { $ result = $ this -> api_friendly_values ( ) ; return $ encoded ? json_encode ( $ result ) : $ result ; }
Overwrites normal as_json to use api_friendly_values
Overwrites normal as_json to use api_friendly_values