<commit_before>#JSON2Apex 
####A Sublime Text 3 plugin to generate Salesforce Apex classes from JSON samples.

Ever developed a Salesforce integration with a huge JSON objects coming both ways? Even though you only need to do it ones it's pretty annoying to create a wrapper manually.
I've googled a tool for Apex class autogeneration from JSON sample, but found only 2 tools, none of which did satisfy me.
So I've made this.

###How to use it
Since I haven't published it to Package Control yet, in order to use you have to:

1. Clone this repo to `your_sublime_dir/Packages/`. Restart Sublime if needed
2. Get a JSON response or request sample
3. Open it in Sublime Text 3
4. Using `Ctrl+Shit+P` (or `⌘+Shift+P` on Mac) find `JSON2Apex: Convert sample to Apex`
5. Press Enter
6. You will see generated Apex code. Also a text input appears in the bottom of the buffer. Use this input to change generated class names quickly.

You've got formatted Apex class opened in a new buffer. You can change class names or just copy it to your project.

###Nearest future
Add XML convertion

###Other plans
1. Add generation from JSON schema
2. Online version<commit_msg>readme update<commit_after>#JSON2Apex 
####A Sublime Text 3 plugin to generate Salesforce Apex classes from JSON samples.

Ever developed a Salesforce integration with a huge JSON objects coming both ways? Even though you only need to do it ones it's pretty annoying to create a wrapper manually.
I've googled a tool for Apex class autogeneration from JSON sample, but found only 2 tools, none of which did satisfy me.
So I've made this.

###How to use it
Since I haven't published it to Package Control yet, in order to use you have to:

1. Clone this repo to `your_sublime_dir/Packages/`. Restart Sublime if needed
2. Get a JSON response or request sample
3. Open it in Sublime Text 3
4. Using `Ctrl+Shit+P` (or `⌘+Shift+P` on Mac) find `JSON2Apex: Convert sample to Apex`
5. Press Enter
6. You will see generated Apex code. Also a text input appears in the bottom of the buffer. Use this input to change generated class names quickly.

###Nearest future
Add XML convertion

###Other plans
1. Add generation from JSON schema
2. Online version
{'fraction_non_alphanumeric': 0.055782312925170066, 'fraction_numerical': 0.011791383219954649, 'mean_word_length': 4.239904988123516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3031859', 'n_tokens_mistral': 646, 'n_tokens_neox': 610, 'n_words': 370}