Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f68bd69

Browse files
committed
readme
1 parent 15da81e commit f68bd69

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

‎README.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
# JSONToKotlinClass
2+
Intellij Idea, Android Studio plugin.
3+
4+
Plugin generates Kotlin data classes from JSON text. It can find inner classes in nested JSON. You can disable undesirable fields in class, change field name and type and add Gson annotations.
5+
6+
# Download
7+
8+
You can install it from <a href="https://plugins.jetbrains.com/plugin/10054">plugin repository</a>
9+
10+
# How to use
11+
Right click on package -> Generate class from JSON -> Copy json, type class name -> Check field names and types -> Generate
12+
13+
<img src="images/screen1.png" width="50%" height="50%"><img src="images/screen2.png" width="50%" height="50%"><img src="images/screen3.png" width="50%" height="50%">
14+
File renamed without changes.

‎resources/META-INF/plugin.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin>
22
<id>com.mighty16.json.kotlin.class</id>
33
<name>Generate Kotlin data classes from JSON</name>
4-
<version>0.81</version>
4+
<version>0.8.2</version>
55
<vendor email="mighty16.developer@gmail.com">Mighty16</vendor>
66

77
<description>Plugin generates Kotlin data classes from JSON text. It can find inner classes in nested JSON. You can disable undesirable fields in class, change field name and type and add Gson annotations.</description>

‎src/com/mighty16/json/JSONEditDialog.java‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@
1111
import javax.swing.*;
1212
import javax.swing.event.DocumentEvent;
1313
import javax.swing.event.DocumentListener;
14-
import javax.swing.text.BadLocationException;
15-
import javax.swing.text.DefaultHighlighter;
16-
import javax.swing.text.Document;
17-
import javax.swing.text.Highlighter;
18-
import java.awt.*;
1914
import java.awt.event.*;
20-
import java.util.*;
2115
import java.util.List;
2216

2317
public class JSONEditDialog extends JDialog {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /