Work in progress - fromJSON.