Hid the json objects behind interfaces