Add json method to Box