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)
Well, yeah, I just wanted this to be the same with the other examples. But if that's not an issue this can very well be `&'static str`...