Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Delivery
Public
Open source
AGRabbitMQ
Commits
286634e9
Commit
286634e9
authored
5 years ago
by
dbourdere
Browse files
Options
Download
Email Patches
Plain Diff
use symfony encode instead of json_encode
parent
696d6e26
master
0.2.3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Tools/JsonSerializer.php
+2
-1
src/Tools/JsonSerializer.php
with
2 additions
and
1 deletion
+2
-1
src/Tools/JsonSerializer.php
+
2
-
1
View file @
286634e9
...
...
@@ -36,7 +36,8 @@ class JsonSerializer
{
$array
=
self
::
getInstance
()
->
normalize
(
$object
);
$arrayfiltered
=
self
::
array_filter_recursive
(
$array
,
function
(
$v
){
return
$v
!==
null
;});
$object
=
json_encode
(
$arrayfiltered
);
$jsonEncoder
=
new
JsonEncoder
();
$object
=
$jsonEncoder
->
encode
(
$arrayfiltered
,
'json'
);
return
$object
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help