Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 322 Bytes

JsonxTypeDecoder.md

File metadata and controls

15 lines (10 loc) · 322 Bytes

JsonxTypeDecoder

<?php

use Chubbyphp\DecodeEncode\Decoder\JsonxTypeDecoder;

$decoderType = new JsonxTypeDecoder();

echo $decoderType->getContentType();
// 'application/jsonx+xml'

print_r($decoderType->decode('<json:object><json:string name="name">php</json:string></json:object>'));
// ['name' => 'php']