google / google/gson

I need to implement GSON serialization filtering based on template. in GSON. in GSON exclusionStrategy , shouldSkipField , I need to know field's concrete class, where am I in class hierarchy

Open
#528 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

```
. My class structure is as following:-
class A{
String id; }
class B{
String bb;
String bbb; }
class c extends A{
String cVal;
B bObj; }

I want to access 'id' field via class c, but id field's declaring class comes
as A instead of c
```

Original issue reported on code.google.com by `preetiag...@gmail.com` on 17 Jul 2013 at 4:23

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.