Handle mimetype application/json (is it right ?)
Fix JSON rendering