[Proposal] Expose API for object string (de-)serialization by type and format

input field type gives ability to accept and expose the data via string. Other custom elements or code would benefit from identical serialization option.

As a sample, working on local-storage custom element as part of Declarative Custom Element chain. The json and string are obvious values, but should other types like in input be honored?