Fabric-language-kotlin: !full!

if == " main ": generate_users(1000)

// 5. Export filtered results val output = activeKotlinUsers.map { mapOf("name" to it.fullName, "email" to it.email, "age" to it.age) } File("kotlin_fans.json").writeText(json.encodeToString(output)) println("\nExported Kotlin fans to kotlin_fans.json") } Create a build.gradle.kts : fabric-language-kotlin

Run this once to create users.json :

dependencies { implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3") } if == " main ": generate_users(1000) // 5

println("Loaded ${users.size} users")