All Projects → mannodermaus → Retrofit Logansquare

mannodermaus / Retrofit Logansquare

Licence: apache-2.0
A Converter implementation using LoganSquare JSON serialization for Retrofit 2.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Retrofit Logansquare

Inspec tools
A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
Stars: ✭ 65 (-70.98%)
Mutual labels:  json, converter
Kripton
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.
Stars: ✭ 110 (-50.89%)
Mutual labels:  json, retrofit2
Json Ditto
Declarative JSON-to-JSON mapper .. shape-shift JSON files with Ditto 👻
Stars: ✭ 66 (-70.54%)
Mutual labels:  json, converter
Jsontocodable
A generating tool from Raw JSON to Codable (Swift4) text written in Swift4.
Stars: ✭ 33 (-85.27%)
Mutual labels:  json, converter
Node Js2xmlparser
Popular Node.js module for parsing JavaScript objects into XML
Stars: ✭ 171 (-23.66%)
Mutual labels:  json, converter
Retrofit Recyclervew
An implementation of a RecyclerView using Retrofit and Glide to create a movie list
Stars: ✭ 40 (-82.14%)
Mutual labels:  json, retrofit2
Json Node Normalizer
'json-node-normalizer' - NodeJS module that normalize json data types from json schema specifications.
Stars: ✭ 105 (-53.12%)
Mutual labels:  json, converter
Sqawk
Like Awk but with SQL and table joins
Stars: ✭ 263 (+17.41%)
Mutual labels:  json, converter
Goxml2json
XML to JSON converter written in Go (no schema, no structs)
Stars: ✭ 170 (-24.11%)
Mutual labels:  json, converter
Gelatin
Transform text files to XML, JSON, or YAML
Stars: ✭ 150 (-33.04%)
Mutual labels:  json, converter
Sqlitebiter
A CLI tool to convert CSV / Excel / HTML / JSON / Jupyter Notebook / LDJSON / LTSV / Markdown / SQLite / SSV / TSV / Google-Sheets to a SQLite database file.
Stars: ✭ 601 (+168.3%)
Mutual labels:  json, converter
Jsonsubtypes
Discriminated Json Subtypes Converter implementation for .NET
Stars: ✭ 201 (-10.27%)
Mutual labels:  json, converter
Remarshal
Convert between CBOR, JSON, MessagePack, TOML, and YAML
Stars: ✭ 421 (+87.95%)
Mutual labels:  json, converter
I18n Generator
i18n json files generator for node, web browser and command line
Stars: ✭ 60 (-73.21%)
Mutual labels:  json, converter
Jet
CLI to transform between JSON, EDN and Transit, powered with a minimal query language.
Stars: ✭ 331 (+47.77%)
Mutual labels:  json, converter
Perun
A command-line validation tool for AWS Cloud Formation that allows to conquer the cloud faster!
Stars: ✭ 82 (-63.39%)
Mutual labels:  json, converter
Templeapp
Android App which handles the information about temple. People can register and keep a track of all poojas, donations made to the temple.
Stars: ✭ 231 (+3.13%)
Mutual labels:  json, retrofit2
Any Json
Convert (almost) anything to JSON
Stars: ✭ 128 (-42.86%)
Mutual labels:  json, converter
Swagger Toolbox
💡 Swagger schema model (in yaml, json) generator from json data
Stars: ✭ 194 (-13.39%)
Mutual labels:  json, converter
Dataset Serialize
JSON to DataSet and DataSet to JSON converter for Delphi and Lazarus (FPC)
Stars: ✭ 213 (-4.91%)
Mutual labels:  json, converter

retrofit-logansquare

Travis Build Status

A Converter implementation using BlueLine Labs' LoganSquare JSON serialization for Square's Retrofit REST library.
Please note that this library is solely intended for usage with Retrofit 2.0.0 and above! It won't work with 1.9 or earlier. Please refer to this section of the README for instructions on how to include LoganSquare serialization on these versions.

Download

Get it on jcenter():

compile "com.github.aurae.retrofit2:converter-logansquare:1.4.1"

Don't forget to include the dependencies on LoganSquare as well! Their latest release at the moment: Check the repo

annotationProcessor "com.bluelinelabs:logansquare-compiler:<latest-logansquare-version>"
compile "com.bluelinelabs:logansquare:<latest-logansquare-version>"

Usage

Plug in the LoganSquareConverterFactory like any other converter upon creating your Retrofit instance:

Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://your.server.com/api/")
    .addConverterFactory(LoganSquareConverterFactory.create())
    .build();

I'm using Retrofit 1.x, though!

In that case, it might be time to upgrade! If you can't or won't, refer to this gist for a quick solution (no guarantees that it will work 100% of the time, though).

License

Copyright 2017 Marcel Schnelle

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].