JSON to Scala 3 & Scala 2 Case Class Generator
Convierte cargas útiles JSON en case classes fuertemente tipadas para Scala con derivación automática de códecs para Circe, Play JSON o zio-json.
package com.example.models
import java.time.Instant
import io.circe._
import io.circe.generic.semiauto._
import io.circe.syntax._
final case class Customer(
customerId: String,
email: String,
fullName: String,
loyaltyTier: String,
registeredAt: Instant
) derives Codec.AsObject
final case class ShippingAddress(
street: String,
city: String,
state: String,
postalCode: String,
country: String
) derives Codec.AsObject
final case class LineItem(
sku: String,
title: String,
unitPrice: BigDecimal,
quantity: Int,
taxRate: BigDecimal,
inStock: Boolean
) derives Codec.AsObject
final case class Payment(
transactionRef: String,
method: String,
isAuthorized: Boolean,
paidAt: Instant
) derives Codec.AsObject
final case class OrderPayload(
orderId: String,
orderNumber: String,
customer: Customer,
shippingAddress: ShippingAddress,
lineItems: List[LineItem],
subtotal: BigDecimal,
taxAmount: BigDecimal,
totalAmount: BigDecimal,
currency: String,
payment: Payment,
discountCode: Option[String] = None,
notes: String
) derives Codec.AsObject
Ejecución Local de Conocimiento Cero
Todo el procesamiento, análisis y generación de código se ejecutan estrictamente en la memoria del navegador. Cero subidas a servidores externos.
Motor Reactivo de Submilisegundos
All data payloads remain strictly local with zero external server communication.
Production Ready Export
Clean, optimized output formats ready for immediate deployment.