JSON to Scala 3 & Scala 2 Case Class Generator
Convertissez vos charges utiles JSON en case classes Scala sécurisées avec dérivation automatique de codecs Circe, Play JSON ou 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
Exécution Locale Zero-Knowledge
Tous les traitements, analyses et générations s'exécutent strictement dans la mémoire de votre navigateur. Zéro transmission vers un serveur externe.
Moteur Réactif Submilliseconde
All data payloads remain strictly local with zero external server communication.
Production Ready Export
Clean, optimized output formats ready for immediate deployment.