superfell/json2apex — pull request #9 by metadaddy-sfdc (2012-01-16 20:19:54+00:00)
Title: Merge fields from objects in arrays rather than creating heterogeneous arrays

Apex will not deserialize into a List<Object>. Given the JSON input

{
"somearray" : [
{
"id" : "12345",
"name" : "Bob"
},
{
"id" : "23456",
"zip" : "90210"
}
]
}

and the Apex output

//
// Generated by JSON2Apex http://json2apex.herokuapp.com/
//

public class JSON2Apex {

public class Somearray {
public String id;
public String name;
}

public class Somearray_Z {
public String id;
public String zip;
}

public class Root {
public List