moshi-jsonapi
moshi-jsonapi copied to clipboard
JSON API v1.0 Specification in Moshi.
How do I put null in the network model field? I have a model like this @JsonApi(type = "notes") data class Note( var name: String? = null, var description: String?...
My JSON response has 3 nested `relationships` in it which looks like this:  lib can parse the `blue` and `red` layers but when it comes to the `green` layer....
Hi, I'm using Retrofit to make paged requests. I need to be able to get paging attributes contained in meta. The retrofit interface has a call like this: `@GET("appointments?include=service") Call...
Jitpack.io depends on jCenter that is deprecated. Do you plan to migrate the app to MavenCentral?
How to get data from one object, but that object have 2 different types? I have object named 'metric', but 'metric' have 2 different types  
I have problems trying to do the following in my app in Kotlin I have 2 objects, User and UserRelationship ``` import moe.banana.jsonapi2.JsonApi import moe.banana.jsonapi2.Resource JsonApi(type = "users") class User...
For instance I have a data model where a Survey has many Questions and a question has many Choices. All of the Questions and Choices are included when I query...
According to [this](https://discuss.jsonapi.org/t/cycles-in-relationships/1649/2) discussion on Json:API forums, resources in primary data may have relationships with other resources that are also there (e.g. two "people" type resources with HasOne relationships referencing...
`java.lang.RuntimeException: java.lang.Exception: com.squareup.moshi.JsonDataException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at path $.data[0].relationships` Retrofit call: ``` @GET("someApi/someModel") fun getSomeModel(): Single ``` Model: ``` @JsonApi(type = "some_model") public class SomeModel extends Resource {...
Hi, I receive this JSON: ```JSON { "data": [{ "type": "place", "id": "00d66be8-7315-4f75-9dc1-7dc737a055ef", "attributes": { "name": "Test Pharmacy", "lat": 42.394898, "lng": 2.151117, "image_url": "", "user_distance": 0.03 }, "relationships": { "place_address":...