Project Group: com.mikesamuel

json-sanitizer

com.mikesamuel : json-sanitizer

Given JSON-like content, converts it to valid JSON. This can be attached at either end of a data-pipeline to help satisfy Postel's principle: be conservative in what you do, be liberal in what you accept from others Applied to JSON-like content from others, it will produce well-formed JSON that should satisfy any parser you use. Applied to your output before you send, it will coerce minor mistakes in encoding and make it easier to embed your JSON in HTML and XML.

Last Version: 1.2.3

Release Date:

HTML Contextual Autoescaper

com.mikesamuel : html-autoescaper

Prevents XSS by figuring out how to escape untrusted values in templates.

Last Version: 1.0

Release Date:

  • 1