- json_encode: documentation ( source)
<?php
echo json_encode(
[
'Login' => 'foo',
'Password' => '1',
'Email' => 'foo@bar.com',
'Phone' => '89989898998',
'CompanyName' => 'bar1',
'Address' => array(
'FirstName' => null,
'MiddleName' => null,
'LastName' => null,
'City' => null,
'PostalCode' => null,
'Region' => null,
'AddressLine' => null,
'Language' => 'en',
'Culture' => 'en-US',
'Phone' => null,
),
'DynamicProperties' =>
array(
array(
'Key' => 'lorem',
'Value' => 'ipsum',
'Unit' => null,
),
array(
'Key' => 'length',
'Value' => '100',
'Unit' => 'cm',
),
),
'State' => 'Acvvtive',
'Type' => 'Organization',
]
, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)
;