Skip to content

Commit 5d11e88

Browse files
committed
Added JsonSerializationAdapter.php (Custom JSON implementation) and more
1 parent 1fcefc4 commit 5d11e88

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "interaapps/module",
2+
"name": "interaapps/jsonplus",
33
"version": "1.0.0",
44
"type": "library",
55
"authors": [

src/test/testbootstrap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public function setName(string $name): Test {
4343
"aeef2": {"test": true},
4444
"test": false,
4545
"feef": 21,
46-
"aeef": [1,2,3],
46+
"aeef": ["1","2","3"],
4747
"test2": "a"
4848
}';
4949

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

0 commit comments

Comments
 (0)