PHP 인터페이스 Webmozart\Json\Conversion\JsonConverter

부터: 1.3
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/json 0 사용 예제들

공개 메소드들

메소드 설명
fromJson ( mixed $jsonData, array $options = [] ) : mixed Converts JSON to an implementation-specific data structure.
toJson ( mixed $data, array $options = [] ) : mixed Converts an implementation-specific data structure to JSON.

메소드 상세

fromJson() 공개 메소드

Converts JSON to an implementation-specific data structure.
public fromJson ( mixed $jsonData, array $options = [] ) : mixed
$jsonData mixed The JSON data. Use a {@link JsonDecoder} to convert a JSON string to this data structure
$options array Additional implementation-specific conversion options
리턴 mixed The converted data

toJson() 공개 메소드

Converts an implementation-specific data structure to JSON.
public toJson ( mixed $data, array $options = [] ) : mixed
$data mixed The data to convert
$options array Additional implementation-specific conversion options
리턴 mixed The JSON data. Pass this data to a {@link JsonEncoder} to generate a JSON string