Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

char Type marshalls to class="system.lang.Character" #30

Open
jgossett opened this issue Jan 11, 2017 · 0 comments
Open

char Type marshalls to class="system.lang.Character" #30

jgossett opened this issue Jan 11, 2017 · 0 comments

Comments

@jgossett
Copy link

jgossett commented Jan 11, 2017

SYMPTOMS

Our project uses single character flags in one class. When we GET an instance, the char property value is [class='system.lang.Character'], I was simply expecting to get a single character string (e.g. 'C' or 'D').

CODE

class Product {
    char TypeFlag
}

WORKAROUND

I created the following Marshaller.

JSON.registerObjectMarshaller(Character, { it as String});

(BTW, We really, really appreciate your project. It so easy to used and it has saved us so much time. Kudos you and your fellow project contributors.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant