Controll the removal of line breaks in method set_json.

I've added the instance attribute dont_replace_linebreaks and corresponding setter method set_dont_replace_linebreaks to controll the removal of line breaks in method set_json.