MVN

com.mikesamuel : json-sanitizer

Maven & Gradle

May 12, 2021
32 usages
165 stars

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.

<dependency>
    <groupId>com.mikesamuel</groupId>
    <artifactId>json-sanitizer</artifactId>
    <version>1.2.3</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.mikesamuel : json-sanitizer to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.2.3

All Versions

Choose a version of com.mikesamuel : json-sanitizer to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
1.2.x
json-sanitizer-1.2.3
json-sanitizer-1.2.2
json-sanitizer-1.2.1
2 vulnerabilities
json-sanitizer-1.2.0
3 vulnerabilities
1.1
json-sanitizer-1.1
3 vulnerabilities
1.0
json-sanitizer-1.0
3 vulnerabilities

How to add a dependency to Maven

Add the following com.mikesamuel : json-sanitizer maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.mikesamuel</groupId>
    <artifactId>json-sanitizer</artifactId>
    <version>1.2.3</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.mikesamuel : json-sanitizer gradle dependency to your build.gradle file:

implementation 'com.mikesamuel:json-sanitizer:1.2.3'

Gradle Kotlin DSL: Add the following com.mikesamuel : json-sanitizer gradle kotlin dependency to your build.gradle.kts file:

implementation("com.mikesamuel:json-sanitizer:1.2.3")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.mikesamuel : json-sanitizer sbt scala dependency to your build.sbt file:

libraryDependencies += "com.mikesamuel" % "json-sanitizer" % "1.2.3"

Advertisement