-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow JSON_PRETTY_PRINT #46
Comments
At phpMyAdmin while adding your lib on our tests I had to hack this to enable pretty print because reading diffs on PRs is very important for us. $serializer = new JsonSerializer();
$encoded = $serializer->serialize($test);
$encoded = json_encode(json_decode($encoded), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION); |
Ref: zumba/json-serializer#46 (for why the JSON pretty print hack is needed) Signed-off-by: William Desportes <[email protected]>
Hi @jrbasso |
@williamdes Sorry, I totally missed this issue. I'm sorry. I think just adding the |
Sure ! Here is the old diffs, totally un-readable PHP serialize data: phpmyadmin/sql-parser@b60d7e7 And here you can see that with you lib and pretty json it make quite a difference in changes tracking ! |
json-serializer/src/JsonSerializer/JsonSerializer.php
Line 118 in 1288ee1
The text was updated successfully, but these errors were encountered: