Add dense support for from JSON