j

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.
https://github.com/OWASP/json-sanitizer
Apache License, Version 2.0
OWASP
Mike Samuel
Files download
File Operation
json-sanitizer-1.2.1.jar download
json-sanitizer-1.2.1.pom download
json-sanitizer-1.2.1-sources.jar download
Apache Maven
<dependency>
  <groupId>com.mikesamuel</groupId>
  <artifactId>json-sanitizer</artifactId>
  <version>1.2.1</version>
</dependency>
Gradle Groovy
implementation 'com.mikesamuel:json-sanitizer:1.2.1'
Gradle Kotlin
implementation("com.mikesamuel:json-sanitizer:1.2.1")
Scala SBT
libraryDependencies += "com.mikesamuel" % "json-sanitizer" % "1.2.1"
Groovy Grape
@Grapes(
  @Grab(group='com.mikesamuel', module='json-sanitizer', version='1.2.1')
)
Apache Ivy
<dependency org="com.mikesamuel" name="json-sanitizer" rev="1.2.1" />
Leiningen
[com.mikesamuel/json-sanitizer "1.2.1"]
Apache Buildr
'com.mikesamuel:json-sanitizer:jar:1.2.1'