All Projects → superfell → json2apex

superfell / json2apex

Licence: MIT License
Generate strongly typed apex code from a json structure.

Programming Languages

python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to json2apex

NebulaFramework
A development framework for Salesforce's Apex language & the Force.com platform
Stars: ✭ 28 (-76.86%)
Mutual labels:  salesforce, apex
Script.apex
Evaluate Javascript expressions in Apex
Stars: ✭ 18 (-85.12%)
Mutual labels:  salesforce, apex
apex-graphql-query
A library for building GraphQL queries in apex
Stars: ✭ 31 (-74.38%)
Mutual labels:  salesforce, apex
lwc-modules
Build any LWC you want without ever having to touch Apex
Stars: ✭ 20 (-83.47%)
Mutual labels:  salesforce, apex
apex-query-builder
Convenient query builder for dynamic SOQL queries
Stars: ✭ 37 (-69.42%)
Mutual labels:  salesforce, apex
SFDCRules
Simple yet powerful Rule Engine for Salesforce - SFDCRules
Stars: ✭ 38 (-68.6%)
Mutual labels:  salesforce, apex
amoss
Amoss - Apex Mock Objects, Spies and Stubs - A Simple Mocking framework for Apex (Salesforce)
Stars: ✭ 55 (-54.55%)
Mutual labels:  salesforce, apex
R.apex
Functional utility library for Apex
Stars: ✭ 80 (-33.88%)
Mutual labels:  salesforce, apex
fast-sfdc
A VSCode plugin to develop Salesforce projects in vscode
Stars: ✭ 16 (-86.78%)
Mutual labels:  salesforce, apex
ApexTriggerHandler
Another library implements Apex trigger handler design pattern.
Stars: ✭ 40 (-66.94%)
Mutual labels:  salesforce, apex
apex-dml-mocking
DML mocking, CRUD mocking, dependency injection framework for Salesforce.com (SFDC) using Apex
Stars: ✭ 38 (-68.6%)
Mutual labels:  salesforce, apex
salesforce-plantuml
Salesforce app to generate UML class & ER-diagrams from your org data. Leverages the PlantUML library.
Stars: ✭ 89 (-26.45%)
Mutual labels:  salesforce, apex
Apex-Code-Conventions
Apex conventions and best practices for Salesforce Developers
Stars: ✭ 28 (-76.86%)
Mutual labels:  salesforce, apex
apexmock
force.com Mock data and fixtures for Apex Unit Tests
Stars: ✭ 24 (-80.17%)
Mutual labels:  salesforce, apex
apex-tmLanguage
Salesforce Apex Language syntax grammar used for colorization
Stars: ✭ 27 (-77.69%)
Mutual labels:  salesforce, apex
sf-cross-cutting-concerns
Apex Cross cutting concerns for Salesforce
Stars: ✭ 29 (-76.03%)
Mutual labels:  salesforce, apex
timeline-component-lwc
This component enables timeline view for Salesforce Record history.
Stars: ✭ 18 (-85.12%)
Mutual labels:  salesforce, apex
ApexCallouts
A lightweight Apex library for making HTTP callouts. Works with remote site settings and named credentials.
Stars: ✭ 32 (-73.55%)
Mutual labels:  salesforce, apex
APEX-Q
A promise library for Salesforce
Stars: ✭ 30 (-75.21%)
Mutual labels:  salesforce, apex
apex-utils
Utility classes for Salesforce Apex development
Stars: ✭ 20 (-83.47%)
Mutual labels:  salesforce, apex

JSON2Apex

This app allows a user to paste in an instance of a json document, and have it generate strongly typed apex code that can deserialize it.

Its written in Java using the Play! framework, if you want to try it out, its running at http://json2apex.herokuapp.com

JSON2Apex is open source under the MIT license.

About integration-tests

The integration-test folder contains a modified version of beatbox that can call the compileClass API in the Apex API, there's a test runner that will post the test json's to a running instance of the app and then send them to saleforce, if salesforce reports a compilation error, that's logged in the test runner output.

the test runner requires python3 and a salesforce developer edition org.

Warning, it'll overwrite any class called JSON2ApexIntegration[_Test] you might have

run the integration tests from the integration-test folder with

python3 tests.py <sfdc_username> <sfdc_password>

you'll get output similar to

Logged in at https://na45.salesforce.com/services/Soap/u/42.0/00D300000000QSf
Compiling 2 scripts generated from basic_object.json                explicitParse:False ✔ success
Compiling 2 scripts generated from basic_object.json                explicitParse:True  ✔ success
Compiling 2 scripts generated from dot_in_fieldname.json            explicitParse:False ✔ success
Compiling 2 scripts generated from dot_in_fieldname.json            explicitParse:True  ✔ success
Compiling 2 scripts generated from dot_in_objectname.json           explicitParse:False ✔ success
Compiling 2 scripts generated from dot_in_objectname.json           explicitParse:True  ✔ success
Compiling 2 scripts generated from field_array.json                 explicitParse:False ✔ success
Compiling 2 scripts generated from field_array.json                 explicitParse:True  ✔ success
Compiling 2 scripts generated from underscore_in_fieldname.json     explicitParse:False ✔ success
Compiling 2 scripts generated from underscore_in_fieldname.json     explicitParse:True  ✔ success

Note that beatbox & xmltramp is GPL, not MIT like the rest of this project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].