prints json representation by default