https://github.com/jayeshpansheriya/okhttplibrary
Webservice call using okhttp network library With Gson
https://github.com/jayeshpansheriya/okhttplibrary
android-webservice-helper gson gson-converter json network-library okhttp webservice
Last synced: about 2 months ago
JSON representation
Webservice call using okhttp network library With Gson
- Host: GitHub
- URL: https://github.com/jayeshpansheriya/okhttplibrary
- Owner: jayeshpansheriya
- Created: 2018-06-12T06:56:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T07:07:27.000Z (about 8 years ago)
- Last Synced: 2025-01-26T17:45:56.181Z (over 1 year ago)
- Topics: android-webservice-helper, gson, gson-converter, json, network-library, okhttp, webservice
- Language: Java
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OkHttpLibrary
Webservice call using okhttp network library With Gson
- Here Webservice is a common class of okhttp library
- Helper Class Made json using array
Some Dependencies are required:
```
implementation 'com.squareup.okhttp:okhttp:2.0.0'
implementation 'com.google.code.gson:gson:2.2.4'
```
Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. For this purpose Gson provides several built in serializers and deserializers. A serializer allows to convert a Json string to corresponding Java type and a deserializers allows to convert from Java to a JSON representation. You can also configure Gson to use custom representations of your objects.