Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add escape json #204
The first commit message describes its behavior (basically the same as golang's json marshal):
Note: hex or unicode escaping all unsafe char codes is an option too (implemented in the first commit) but probably incurs a larger performance hit.
My end goal here is to write middleware to escape all JSON from an API or make it an option in hapi core if there's interest.