api

http4k / org.http4k.filter / GenerateDataClasses / <init>

<init>

GenerateDataClasses(json: Json<NODE>, out: PrintStream = System.out, idGenerator: () -> Int = { abs(Random.nextInt()) })

This Filter is used to generate Data class definitions from a Response containing JSON. The Filter will try and reduce the number of class definitions by selecting the definition with the most fields (for cases where lists of items have different fields).