Skip to content

Commit ffc1646

Browse files
committed
Changed README
1 parent 2b0e878 commit ffc1646

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use de\interaapps\jsonplus\serializationadapter\impl\JsonSerializationAdapter;
1010
use de\interaapps\jsonplus\serializationadapter\impl\phpjson\PHPJsonSerializationAdapter;
1111

1212
$jsonPlus = JSONPlus::createDefault();
13-
$obj = $jsonPlus->fromJson('{"obj": "hello world"}');
14-
echo $obj->string; // -> hello world
13+
$obj = $jsonPlus->fromJson('{"test": "hello world"}');
14+
echo $obj->test; // -> hello world
1515

1616
// Enabling pretty printing
1717
$jsonPlus->setPrettyPrinting(true);
@@ -42,7 +42,7 @@ class User {
4242

4343
public int id;
4444

45-
#[Serialize("firstName")]
45+
#[Serialize("first_name")]
4646
public string firstName;
4747

4848
#[Serialize(hidden: true)]

0 commit comments

Comments
 (0)