Added derived FromJSON and ToJSON instances.