Json API for contacts app