Skip to content

Commit

Permalink
Fix Json escaped slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Jun 22, 2015
1 parent 25af207 commit cde16cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function getAttributes()
*/
public function toJsonPretty(array $data = null)
{
return json_encode($data ?: $this->attributes, JSON_PRETTY_PRINT);
return json_encode($data ?: $this->attributes, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
}

/**
Expand Down

0 comments on commit cde16cd

Please sign in to comment.