Adds support for serialization of a ScanResult
to JSON, and deserialization from JSON back to a ScanResult, for build-time scanning. Uses a built-in, custom optimized JSON serializer and parser, with full support for generic types. Just do the following:
// To serialize a ScanResult:
String jsonStr = scanResult.toJSON(); // or .toJSON(indentWidth) to prettyprint/indent the JSON
// To deserialize a ScanResult:
ScanResult scanResult = ScanResult.fromJSON(jsonStr);