public static List<ObjectModel> loadJsonStream(InputStream input){
  List<ObjectModel> models=new ArrayList<>();
  Reader reader=new InputStreamReader(input);
  ObjectModel[] objectModels=GSON.fromJson(reader,ObjectModel[].class);
  for (  ObjectModel objectModel : objectModels) {
    models.add(objectModel);
  }
  return models;
}

public static List < ObjectModel > loadJsonStream ( InputStream input ) { List < ObjectModel > models = new ArrayList < > ( ) ; Reader reader = new InputStreamReader ( input ) ; ObjectModel [ ] objectModels = GSON . fromJson ( reader , ObjectModel [ ] . class ) ; for ( ObjectModel objectModel : objectModels ) { models . add ( objectModel ) ; } return models ; }
load object definitions from json stream .
