updated the decoded prism to support any type with ToJSON and FromJSON instances