public static void main(final String[] args) {
final Gson gson = new Gson();
final Response response = gson.fromJson("{base: EUR, date:1, rates:{AUD: 1.3762,BGN: 1.9558}}", Response.class);
System.out.println(response);
}
static class Response {
String base;
String date;
Map<String, String> rates;
@Override
public String toString() {
return "Response [base=" + base + ", date=" + date + ", rates=" + rates + "]";
}
}