Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Deserializing error #22

@brystel

Description

@brystel

Hello,

In case when the markup parameter is optional there could be happen deserializing error:

  Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: BEGIN_OBJECT expected, but met STRING
    Scopes: INSIDE_OBJECT>NAME>INSIDE_EMBEDDED_ARRAY>INSIDE_OBJECT
    Closed tags: 'programme'/2>'previously-shown'/3
    Token: null
    Tokens queue: null
    Values queue: , null

The markup might look like:

<previously-shown start="20080306000000" />

or

<previously-shown  />

My container class looks like:

public class PreviouslyShown {

    @SerializedName("@start")
    Date start;
}

Is it bug or there is any option to deserialize this markup?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions