Skip to main content
Tools CRM Specific
APEX

JSON to Apex Wrapper Class Generator

v1.0 · Everything below stays in your browser

Paste JSON, get a Salesforce Apex wrapper class with @AuraEnabled fields and inferred types. Browser-only, no upload.

Runs entirely in your browser · Your input is never transmitted

Paste JSON
JSON INPUT
0 BReady
APEX
 
0 classes

How to use

  1. Paste a JSON payload from a REST callout, Workbench, or Postman.
  2. Set the wrapper class name (defaults to ResponseWrapper).
  3. Copy the generated Apex into a new class file in your SFDX project.

Frequently asked

When should I use this?

When deserializing a REST callout response, returning typed data from an @AuraEnabled method to LWC or Aura, or scaffolding a request body class. Beats fishing values out of Map<String, Object>.

How are types inferred?

Numbers without a fractional part become Integer (or Long if outside 32-bit range), numbers with a decimal become Decimal, ISO 8601 strings become Datetime or Date, booleans become Boolean, arrays become List<T>, nested objects become inner classes.

What about Apex reserved words in JSON keys?

Apex reserves names like Date, System, Type, Group. The tool flags these in comments rather than silently rewriting — rename the field manually so your wrapper compiles.

Does it leave my browser?

No. Parsing, type inference, and code generation all run client-side. Safe to paste production payloads.