We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b0e878 commit ffc1646Copy full SHA for ffc1646
1 file changed
README.md
@@ -10,8 +10,8 @@ use de\interaapps\jsonplus\serializationadapter\impl\JsonSerializationAdapter;
10
use de\interaapps\jsonplus\serializationadapter\impl\phpjson\PHPJsonSerializationAdapter;
11
12
$jsonPlus = JSONPlus::createDefault();
13
-$obj = $jsonPlus->fromJson('{"obj": "hello world"}');
14
-echo $obj->string; // -> hello world
+$obj = $jsonPlus->fromJson('{"test": "hello world"}');
+echo $obj->test; // -> hello world
15
16
// Enabling pretty printing
17
$jsonPlus->setPrettyPrinting(true);
@@ -42,7 +42,7 @@ class User {
42
43
public int id;
44
45
- #[Serialize("firstName")]
+ #[Serialize("first_name")]
46
public string firstName;
47
48
#[Serialize(hidden: true)]
0 commit comments