title: Is there an easy way to deserialize a JsonObject consisting of similar JsonObjects that really should be a JsonArray consisting of those objects?
body: <p>OK my problem is the json that i am requesting looks like this</p>
  
  <pre><code>{"matthew":{...}}, {"mark":{...}}, {"luke":{...}}
  </code></pre>
  
  <p>Its is one object containing multiple objects that really should actually be an array because all these objects have an identical structure. Very silly imo. Should be an array but unfortunately i cant change this server side as it is not my api.</p>
  
  <p>now if the json looked like this</p>
  
  <pre><code>[{"matthew":{...}}, {"mark":{...}}, {"luke":{...}}]
  </code></pre>
  
  <p>i.e. simply an array, it would be alot easier to parse right?</p>
  
  <pre><code>public Coin deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context)
      throws JsonParseException {
  final JsonObject jsonObject = json.getAsJsonObject();
  Person person = new Person();
  person.name= jsonObject.get("name").getAsString(); 
  person.age= jsonObject.get("age").getAsInt(); 
  return person;
  }
  </code></pre>
  
  <p>This is how i interpret if the json returned is an array. But if its an object? im using rxjava retrofit and gson so it would be really sweet if theres an easy way to do this so that it looks similar to my other services that easily deserialize the json arrays.</p>
  
  <p>I was thinking of just appending a square bracket to the response would make it so much easier but with retrofit and rxjava im still learning i have no idea how to do this.. Is there an easy way to interpret a jsonobject as a jsonarray if all the objects properties are identical object structures that should actually be an array?</p>
  
  <p>Hope i explained it clearly!</p>