Adding field to_string/from_string methods that encode to JSON/YAML strings.

@cpennington Thanks, it seems that YAML is more powerful than what I expected.