{"id":2842,"date":"2025-01-22T11:04:33","date_gmt":"2025-01-22T11:04:33","guid":{"rendered":"https:\/\/adjoe.io\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/"},"modified":"2026-11-14T15:58:40","modified_gmt":"2026-11-14T15:58:40","slug":"generating-code-with-kotlin-symbol-processing","status":"publish","type":"engineer_blog","link":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/","title":{"rendered":"Leveraging Code Generation with KSP for Efficient JSON Serialization"},"content":{"rendered":"<p class=\"wp-block-paragraph\">In adjoe\u2019s <a href=\"https:\/\/adjoe.io\/solutions\/monetize-your-app\/mediation\/\" target=\"_blank\" rel=\"noreferrer noopener\">WAVE<\/a> team, our mission is to empower app publishers with a seamless and efficient ad mediation solution and maximize their <a href=\"https:\/\/adjoe.io\/solutions\/monetize-your-app\/\" target=\"_blank\" rel=\"noreferrer noopener\">monetization<\/a> potential. A critical aspect of this mission involves ensuring that our SDKs, which affect millions of users around the world, are robust and performant.\u00a0<\/p><p class=\"wp-block-paragraph\">We identified that one of the key areas where we could optimize performance is through JSON serialization. Instead of relying on third-party libraries in our Android SDK, we decided to develop our own JSON serialization library tailored for our team\u2019s needs.<\/p><p class=\"wp-block-paragraph\">We\u2019ve integrated <a href=\"https:\/\/kotlinlang.org\/docs\/ksp-overview.html\" target=\"_blank\" rel=\"noreferrer noopener\">Kotlin Symbol Processing (KSP)<\/a> to streamline and automate the generation of serialization code at compile time.<\/p><h2 class=\"wp-block-heading\">Why Develop Our Own Library?<\/h2><p class=\"wp-block-paragraph\">We as SDK developers need fine-grained control over every aspect of our codebase. Relying on third-party libraries can introduce unnecessary complexity and constraints.\u00a0<\/p><p class=\"wp-block-paragraph\">By developing our own JSON serialization library, we are able to:<\/p><ol class=\"wp-block-list\"><li><strong>Optimize performance<\/strong>: Tailor the serialization logic to our specific data models, eliminating generic overhead and improving speed.<\/li><li><strong>Reduce dependencies<\/strong>: Avoid potential compatibility issues and security vulnerabilities associated with third-party dependencies.<\/li><li><strong>Customize behavior<\/strong>: Implement custom serialization and deserialization behaviors that are uniquely suited to our SDK\u2019s constantly evolving requirements.<\/li><\/ol><h3 class=\"wp-block-heading\">What is Compile-Time Code Generation?<\/h3><p class=\"wp-block-paragraph\">Compile-time code generation involves creating source code during the compilation process, usually through annotation processing. This approach offers you several advantages over traditional reflection-based approaches:<\/p><ol class=\"wp-block-list\"><li><strong>Performance<\/strong>: You eliminate the need for runtime reflection, which can be slow and resource-intensive, as generated code is compiled into the final application.<\/li><li><strong>Type safety<\/strong>: You enhance the reliability of the code, since you can catch errors at compile time rather than runtime.<\/li><li><strong>Maintainability<\/strong>: The codebase is cleaner and easier to maintain, as this approach reduces boilerplate code.<\/li><\/ol><p class=\"wp-block-paragraph\">Several known libraries like <a href=\"https:\/\/developer.android.com\/jetpack\/androidx\/releases\/room\" target=\"_blank\" rel=\"noreferrer noopener\">Room<\/a> (Android Jetpack), <a href=\"https:\/\/dagger.dev\/\" target=\"_blank\" rel=\"noreferrer noopener\">Dagger<\/a>, and <a href=\"https:\/\/github.com\/square\/moshi\" target=\"_blank\" rel=\"noreferrer noopener\">Moshi<\/a> use compile-time code generation to provide their functionality.<\/p><h3 class=\"wp-block-heading\">What is Kotlin Symbol Processing?<\/h3><p class=\"wp-block-paragraph\">Kotlin Symbol Processing (KSP) is a powerful tool introduced by <a href=\"https:\/\/www.jetbrains.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">JetBrains<\/a> that allows developers to build lightweight compiler plugins.\u00a0<\/p><p class=\"wp-block-paragraph\">KSP provides a simplified API for processing Kotlin programs and generating code. Compared to traditional annotation processors, KSP offers better performance and compatibility with Kotlin\u2019s features.\u00a0<\/p><p class=\"wp-block-paragraph\">Annotation processors that use KSP can, for example, run up to two times faster than with <a href=\"https:\/\/kotlinlang.org\/docs\/kapt.html\" target=\"_blank\" rel=\"noreferrer noopener\">kapt<\/a>. Additionally, by hiding compiler changes, KSP minimizes maintenance efforts for processors. This makes it a great choice for us. You can find a more detailed comparison to other tools and approaches in KSP\u2019s <a href=\"https:\/\/kotlinlang.org\/docs\/ksp-why-ksp.html\" target=\"_blank\" rel=\"noreferrer noopener\">official document<\/a>.\u00a0<\/p><h2 class=\"wp-block-heading\">How Did We Leverage Code Generation?<\/h2><p class=\"wp-block-paragraph\">In our library, Joson, the fundamental processes are JSON serialization and deserialization for structured data types. Avoiding runtime reflection, our approach revolves around using adapters to handle the conversion between Kotlin objects and their JSON representation. This means that each data type that needs to be serialized or deserialized requires a corresponding adapter class implemented in the source code.<\/p><p class=\"wp-block-paragraph\">The following code snippet shows a simplified version of the abstraction for our <code>JSONAdapters<\/code>, in which <code>JWriter<\/code> and <code>JReader<\/code> are helper classes for writing and reading a JSON-encoded value as a stream of tokens.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Kotlin<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-kotlin\">abstract class JsonAdapter&lt;T&gt; {\n    \/** Encodes the given [value] with the given [writer]. *\/\n    abstract fun toJson(writer: JWriter, value: T?)\n\n    \/** Decodes a nullable instance of type [T] from the given [reader]. *\/\n    abstract fun fromJson(reader: JReader): T?\n}<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">The library\u2019s core module provides adapters for Kotlin common types and parameterized types \u2013 for example, primitives and collections. But what about the custom data types?<\/p><p class=\"wp-block-paragraph\">Instead of writing an adapter class for each and every data model in our main codebase, we use the magical power of code generation and utilize KSP to create adapters.<\/p><p class=\"wp-block-paragraph\">Therefore, alongside the main module for the library, we have a code generator module implementing <code>com.google.devtools.ksp.processing.SymbolProcessor<\/code> and <code>com.google.devtools.ksp.processing.SymbolProcessorProvider<\/code> registered as a service responsible for operating on predefined annotations and generating the JsonAdapter classes.<\/p><p class=\"wp-block-paragraph\">With the <code>ksp<\/code> Gradle plugin added to the Android project, the final usage of the library modules and the dependency graph is as follows:<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Kotlin<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-kotlin\">\/\/ Wave `build.gradle` file \ndependencies {\n    implementation(project(&quot;:joson&quot;))\n    ksp(project(&quot;:joson-codegen&quot;))\n}<\/code><\/pre>\n\t<\/div>\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" height=\"1080\" width=\"1942\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2024\/06\/KSL-for-JSON-Serialization-01.webp\" alt=\"graph showing how adjoe\u2019s WAVE works with Joson library and kotlin symbol processing\" class=\"wp-image-2920\" style=\"width:710px;height:569px\"><\/figure><p class=\"wp-block-paragraph\">The following annotation defined in the library\u2019s main module demonstrates how the adapter generation works:<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Kotlin<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-kotlin\">@Target(AnnotationTarget.CLASS)\nannotation class JsonSerializable<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">We then implement the KSP processor for the annotation, which is the entry point of our code generator, like this:<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Kotlin<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-kotlin\">class JsonSerializableSymbolProcessorProvider : SymbolProcessorProvider {\n    override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor {\n        return JsonSerializableSymbolProcessor(environment.codeGenerator, environment.logger)\n    }\n}\n\nprivate class JsonSerializableSymbolProcessor(\n    private val codeGenerator: CodeGenerator,\n    private val logger: KSPLogger\n) : SymbolProcessor {\n    override fun process(resolver: Resolver): List&lt;KSAnnotated&gt; {\n        for (type in resolver.getSymbolsWithAnnotation(JSON_SERIALIZABLE_NAME)) {\n            type as? KSDeclaration ?: continue\n\n            try {\n                \/\/ Generate adapter class and write it to the [codeGenerator]\n            } catch (e: Exception) {\n                logger.error(&quot;Error preparing ${type.simpleName.asString()}&quot;)\n            }\n        }\n        return emptyList()\n    }\n\n    companion object {\n        private val JSON_SERIALIZABLE_NAME = JsonSerializable::class.qualifiedName!!\n    }\n}\n<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">The implementation of <code>SymbolProcessorProvider<\/code> class will be loaded as a service to instantiate the implementation of <code>SymbolProcessor<\/code> class. This should occur within the <code>SymbolProcessorProvider.create()<\/code> method, which will receive the necessary dependencies \u2013 in this case, <code>CodeGenerator<\/code> and <code>KSPLogger<\/code><strong> <\/strong>\u2013 and pass them to the <code>SymbolProcessor<\/code><strong>.<\/strong><\/p><p class=\"wp-block-paragraph\">The main logic of each processor happens inside the <code>SymbolProcessor.process()<\/code><strong> <\/strong>method, which will be called for each provided processor in the compilation time. Inside this method, <code>resolver.getSymbolsWithAnnotation()<\/code> can be used to get the symbols the processor wants to process, given the fully-qualified name of an annotation.\u00a0<\/p><p class=\"wp-block-paragraph\">In our processor, for example, we iterate through the pre-defined <code>JsonSerializable<\/code><strong> <\/strong>annotations in the code and generate an adapter for each annotated class. For more details on implementing a SymbolProcessor, you can read the <a href=\"https:\/\/kotlinlang.org\/docs\/ksp-quickstart.html\" target=\"_blank\" rel=\"noreferrer noopener\">Kotlin documentation<\/a>.\u00a0\u00a0<\/p><p class=\"wp-block-paragraph\">We implemented the actual code generation using a powerful library called <a href=\"https:\/\/square.github.io\/kotlinpoet\/\" target=\"_blank\" rel=\"noreferrer noopener\">KotlinPoet<\/a> by <a href=\"https:\/\/square.github.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Square<\/a>, which is a Kotlin and Java API for generating <code>.kt <\/code>source files.<\/p><p class=\"wp-block-paragraph\">For example, let\u2019s suppose we have a data class like the following, which requires serialization.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Kotlin<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-kotlin\">@JsonSerializable\ndata class AdRequest(\n    val id: String,\n    val publisherId: String,\n    val adType: String,\n    val timestamp: Long\n)<\/code><\/pre>\n\t<\/div>\n<p class=\"wp-block-paragraph\">Simply annotating it with <code>@JsonSerializable<\/code> will result in our code generator module creating the following adapter for it. This adapter will be accessible through the main module like any other custom adapter:<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">Kotlin<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-kotlin\">public class AdRequestJsonAdapter(\n    joson: Joson,\n) : JsonAdapter&lt;AdRequest&gt;() {\n  private val keys: JReader.Keys = JReader.Keys.of(&quot;id&quot;, &quot;publisherId&quot;, &quot;adType&quot;, &quot;timestamp&quot;)\n\n  private val stringAdapter: JsonAdapter&lt;String&gt; = joson.adapter(String::class.java)\n\n  private val longAdapter: JsonAdapter&lt;Long&gt; = joson.adapter(Long::class.java)\n\n  override fun fromJson(reader: JReader): AdRequest {\n    var id: String? = null\n    var publisherId: String? = null\n    var adType: String? = null\n    var timestamp: Long? = null\n    reader.beginObject()\n      while (reader.hasNext()) {\n        when (reader.resolveKey(keys)) {\n          0 -&gt; id = stringAdapter.fromJson(reader) ?: throw illegalNullProperty(&quot;id&quot;, reader)\n          1 -&gt; publisherId = stringAdapter.fromJson(reader) ?: throw illegalNullProperty(&quot;publisherId&quot;, reader)\n          2 -&gt; adType = stringAdapter.fromJson(reader) ?: throw illegalNullProperty(&quot;adType&quot;, reader)\n          3 -&gt; timestamp = longAdapter.fromJson(reader) ?: throw illegalNullProperty(&quot;timestamp&quot;, reader)\n        }\n      }\n      reader.endObject()\n      return AdRequest(\n          id = id ?: throw illegalNullProperty(&quot;id&quot;, reader),\n          publisherId = publisherId ?: throw illegalNullProperty(&quot;publisherId&quot;, reader),\n          adType = adType ?: throw illegalNullProperty(&quot;adType&quot;, reader),\n          timestamp = timestamp ?: throw illegalNullProperty(&quot;timestamp&quot;, reader),\n      )\n  }\n\n  override fun toJson(writer: JWriter, value: AdRequest?) {\n    if (value == null) {\n      throw NullPointerException(&quot;provided value is null on serialization&quot;)\n    }\n        writer.beginObject()\n    writer.name(&quot;id&quot;)\n    stringAdapter.toJson(writer, value.id)\n    writer.name(&quot;publisherId&quot;)\n    stringAdapter.toJson(writer, value.publisherId)\n    writer.name(&quot;adType&quot;)\n    stringAdapter.toJson(writer, value.adType)\n    writer.name(&quot;timestamp&quot;)\n    longAdapter.toJson(writer, value.timestamp)\n    writer.endObject()\n  }\n}<\/code><\/pre>\n\t<\/div>\n<h2 class=\"wp-block-heading\">What Did We Achieve Through Code Generation?<\/h2><p class=\"wp-block-paragraph\">Integrating Kotlin Symbol Processing (KSP) for compile-time code generation has significantly enhanced the efficiency, reliability, and performance of JSON serialization in WAVE\u2019s SDK.<\/p><p class=\"wp-block-paragraph\">We have not only ensured type safety but also minimized build and runtime conflicts and security vulnerabilities by minimizing dependencies on third-party libraries.<\/p><p class=\"wp-block-paragraph\">We\u2019ve crucially also minimized runtime overhead and eliminated potential reflection-related issues. For our team, this translates to fewer bugs and a cleaner, more streamlined codebase that\u2019s easier to maintain. Our end users benefit from a more responsive and stable SDK. This enhances the overall user experience and increases trust in our solution.<\/p><p class=\"wp-block-paragraph\">Embracing code generation further to other areas \u2013 such as generating type-safe APIs, creating database schemas, and streamlining dependency injection \u2013 would allow us to revolutionize various aspects of our development processes and eliminate manual boilerplate, enhance modularity, and improve maintainability across our development processes.\u00a0<\/p><p class=\"wp-block-paragraph\">It would crucially also ensure our <a href=\"https:\/\/adjoe.io\/solutions\/\">solutions<\/a> remain robust and cutting-edge for our partners.<\/p><section class=\"l-section l-section--jobs-include is-light l-pt-lg l-pb-lg\" data-block=\"jobs-include\">\n\t<div class=\"l-wrapper\">\n\t\t<div class=\"jobs-include\">\n\t\t\t\n\t\t\t<div class=\"jobs-include__table-wrap\" tabindex=\"0\">\n\t\t\t\t<table id=\"jobs-include-table-1\" class=\"jobs-include__table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th scope=\"col\">Role<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Team<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Location<\/th>\n\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t<\/thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\" data-label=\"Role\">\n\t\t\t\t\t\t\t\t\t<a class=\"jobs-include__role\" href=\"https:\/\/adjoe.io\/ko\/careers\/open-positions\/7a80a967-7259-4ef9-8314-245d4f467287\/\">\n\t\t\t\t\t\t\t\t\t\tProduct Owner &#8211; Dashboards (f\/m\/d)\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/th>\n\t\t\t\t\t\t\t\t<td data-label=\"Team\">\n\t\t\t\t\t\t\t\t\tAdvertising Solutions\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<td data-label=\"Location\">\n\t\t\t\t\t\t\t\t\tHamburg\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t<\/table>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>In adjoe\u2019s WAVE team, our mission is to empower app publishers with a seamless and efficient ad mediation solution and&#8230;<\/p>\n","protected":false},"author":3,"featured_media":2919,"template":"","engineer_blog_category":[78],"class_list":["post-2842","engineer_blog","type-engineer_blog","status-publish","has-post-thumbnail","hentry","engineer_blog_category-android"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Leveraging Code Generation with KSP for Efficient JSON Serialization - adjoe | Making every interaction the start of lasting value<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Leveraging Code Generation with KSP for Efficient JSON Serialization - adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"og:description\" content=\"In adjoe\u2019s WAVE team, our mission is to empower app publishers with a seamless and efficient ad mediation solution and...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/\" \/>\n<meta property=\"og:site_name\" content=\"adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-14T15:58:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adjoe.io\/wp-content\/uploads\/2024\/06\/code-generation-with-KSP.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/\",\"name\":\"Leveraging Code Generation with KSP for Efficient JSON Serialization - adjoe | Making every interaction the start of lasting value\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/code-generation-with-KSP.webp\",\"datePublished\":\"2025-01-22T11:04:33+00:00\",\"dateModified\":\"2026-11-14T15:58:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/code-generation-with-KSP.webp\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/code-generation-with-KSP.webp\",\"width\":1920,\"height\":1080,\"caption\":\"decorative image with embedded code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/generating-code-with-kotlin-symbol-processing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Leveraging Code Generation with KSP for Efficient JSON Serialization\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"description\":\"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"adjoe | Making every interaction the start of lasting value\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/Adjoe\\\/100076450974671\\\/\",\"https:\\\/\\\/www.instagram.com\\\/adjoe.io\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adjoe\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Leveraging Code Generation with KSP for Efficient JSON Serialization - adjoe | Making every interaction the start of lasting value","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/","og_locale":"ko_KR","og_type":"article","og_title":"Leveraging Code Generation with KSP for Efficient JSON Serialization - adjoe | Making every interaction the start of lasting value","og_description":"In adjoe\u2019s WAVE team, our mission is to empower app publishers with a seamless and efficient ad mediation solution and...","og_url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/","og_site_name":"adjoe | Making every interaction the start of lasting value","article_publisher":"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","article_modified_time":"2026-11-14T15:58:40+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/adjoe.io\/wp-content\/uploads\/2024\/06\/code-generation-with-KSP.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/","url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/","name":"Leveraging Code Generation with KSP for Efficient JSON Serialization - adjoe | Making every interaction the start of lasting value","isPartOf":{"@id":"https:\/\/adjoe.io\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/#primaryimage"},"image":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/#primaryimage"},"thumbnailUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2024\/06\/code-generation-with-KSP.webp","datePublished":"2025-01-22T11:04:33+00:00","dateModified":"2026-11-14T15:58:40+00:00","breadcrumb":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/#primaryimage","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2024\/06\/code-generation-with-KSP.webp","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2024\/06\/code-generation-with-KSP.webp","width":1920,"height":1080,"caption":"decorative image with embedded code"},{"@type":"BreadcrumbList","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/generating-code-with-kotlin-symbol-processing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adjoe.io\/ko\/"},{"@type":"ListItem","position":2,"name":"Leveraging Code Generation with KSP for Efficient JSON Serialization"}]},{"@type":"WebSite","@id":"https:\/\/adjoe.io\/ko\/#website","url":"https:\/\/adjoe.io\/ko\/","name":"adjoe | Making every interaction the start of lasting value","description":"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.","publisher":{"@id":"https:\/\/adjoe.io\/ko\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adjoe.io\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/adjoe.io\/ko\/#organization","name":"adjoe | Making every interaction the start of lasting value","url":"https:\/\/adjoe.io\/ko\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","width":1200,"height":630,"caption":"adjoe | Making every interaction the start of lasting value"},"image":{"@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","https:\/\/www.instagram.com\/adjoe.io\/","https:\/\/www.linkedin.com\/company\/adjoe"]}]}},"_links":{"self":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog"}],"about":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/types\/engineer_blog"}],"author":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":3,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2842\/revisions"}],"predecessor-version":[{"id":3748,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2842\/revisions\/3748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media\/2919"}],"wp:attachment":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media?parent=2842"}],"wp:term":[{"taxonomy":"engineer_blog_category","embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog_category?post=2842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}