json: add sub-section on default de/enconding (staging area)

Cover deconding from &str, default decoding and encoding into String (ref. #86)

(Similar to the previous PR, with added encoding)
I'll prefer if the comment was just above the field, instead of an inline comment. The former mode makes the output of `diff` commands nicer in some cases.