Skip to content

Commit

Permalink
Start preparing for 1.0.0
Browse files Browse the repository at this point in the history
Updated readme for 1.0.0
  • Loading branch information
virustotalop committed Dec 23, 2019
1 parent 1663f0c commit 2102020
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/ravenlab/autogson.svg?branch=master)](https://travis-ci.org/ravenlab/autogson)
[![codecov](https://codecov.io/gh/ravenlab/autogson/branch/master/graph/badge.svg)](https://codecov.io/gh/ravenlab/autogson)
[![](https://jitpack.io/v/ravenlab/autogson.svg)](https://jitpack.io/#ravenlab/autogson)
[![license](https://img.shields.io/badge/license-MIT-blue)](LICENSE)

A utility for automatic conversion to and from json using [gson.](https://github.com/google/gson)
Expand All @@ -20,6 +21,33 @@ String json = AutoGson.toJson(gson, object);
FooBar bar = AutoGson.fromJson(gson, json);
```

### Gradle

``` groovy
repositories {
maven { url 'https://jitpack.io' }
}
compile 'com.github.ravenlab:autogson:1.0.0'
```

### Maven

``` xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependency>
<groupId>com.github.ravenlab</groupId>
<artifactId>autogson</artifactId>
<version>1.0.0</version>
</dependency>
```

## How

When creating a json string a seperate field in the json with the class's name is created.
Expand Down

0 comments on commit 2102020

Please sign in to comment.