Skip to content

Commit

Permalink
Added JsonSerializationAdapter.php (Custom JSON implementation) and more
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFun123 committed Oct 5, 2021
1 parent 1fcefc4 commit 5d11e88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "interaapps/module",
"name": "interaapps/jsonplus",
"version": "1.0.0",
"type": "library",
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions src/test/testbootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public function setName(string $name): Test {
"aeef2": {"test": true},
"test": false,
"feef": 21,
"aeef": [1,2,3],
"aeef": ["1","2","3"],
"test2": "a"
}';

//echo Test::fromJson(JSON)->toJson();
$json = new JSONPlus(new JsonSerializationAdapter());
var_dump($json->fromJson(JSON, Test::class));
echo $json->toJson($json->fromJson(JSON, Test::class));

0 comments on commit 5d11e88

Please sign in to comment.