[render_options] handle bad json
[test_jsonpost] test for invalid json
Merge pull request #140 from pawelmhm/bad_json

[render_options] handle bad json