Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I have two class like below

Java
public class A
{
   public string first;
   public A[] second;
}

public class B extends A
{
   public string name;
   public B[] second;
}


when i convert data json to B class i'm gettin error multible field. Is there any way to do this
Posted
Comments
Pandu Rang 10-Feb-15 4:31am    
Because, you cannot override a variable. What is your requirement?
lgoyal06 13-Feb-15 5:45am    
Would you like to share the JSON with me ??. As JSON data may contains some bad structured element.

1 solution

thnks for replay

public transient B[] second worked
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900