Added json support to all methods