{"action":"created","issue":{"url":"https://api.github.com/repos/writeas/writefreely/issues/46","repository_url":"https://api.github.com/repos/writeas/writefreely","labels_url":"https://api.github.com/repos/writeas/writefreely/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/writeas/writefreely/issues/46/comments","events_url":"https://api.github.com/repos/writeas/writefreely/issues/46/events","html_url":"https://github.com/writeas/writefreely/issues/46","id":389072891,"node_id":"MDU6SXNzdWUzODkwNzI4OTE=","number":46,"title":"Special characters throw Invalid JSON for POST","user":{"login":"robertabramski","id":177674,"node_id":"MDQ6VXNlcjE3NzY3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/177674?v=4","gravatar_id":"","url":"https://api.github.com/users/robertabramski","html_url":"https://github.com/robertabramski","followers_url":"https://api.github.com/users/robertabramski/followers","following_url":"https://api.github.com/users/robertabramski/following{/other_user}","gists_url":"https://api.github.com/users/robertabramski/gists{/gist_id}","starred_url":"https://api.github.com/users/robertabramski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertabramski/subscriptions","organizations_url":"https://api.github.com/users/robertabramski/orgs","repos_url":"https://api.github.com/users/robertabramski/repos","events_url":"https://api.github.com/users/robertabramski/events{/privacy}","received_events_url":"https://api.github.com/users/robertabramski/received_events","type":"User","site_admin":false},"labels":[{"id":574621725,"node_id":"MDU6TGFiZWw1NzQ2MjE3MjU=","url":"https://api.github.com/repos/writeas/writefreely/labels/not%20a%20bug","name":"not a bug","color":"e6e6e6","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-09T22:42:51Z","updated_at":"2018-12-11T00:47:36Z","closed_at":"2018-12-10T22:11:11Z","author_association":"NONE","body":"### Describe the bug\r\nWhen sending text with special characters, such as an ellipsis `…` or curly quotes `‘`, the API request returns an error. The JSON being sent validates with a [linter](https://jsonlint.com/), but not is not valid here. Typing these characters in the editor works as expected.\r\n\r\n### Steps to reproduce (if necessary)\r\nSteps to reproduce the behavior:\r\n1. Send a `POST` to `/api/posts` or `api/collections/{COLLECTION_ALIAS}/posts` with a JSON object using a special character from above.\r\n\r\n### Expected behavior\r\nThe JSON payload should be accepted as valid and a new entry should be made.\r\n\r\n### Application configuration\r\n - Multi-user mode\r\n - Open registration yes\r\n - Federation enabled yes\r\n\r\n**Version or last commit**:\r\nwritefreely v0.4.0\r\n"},"comment":{"url":"https://api.github.com/repos/writeas/writefreely/issues/comments/446030481","html_url":"https://github.com/writeas/writefreely/issues/46#issuecomment-446030481","issue_url":"https://api.github.com/repos/writeas/writefreely/issues/46","id":446030481,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjAzMDQ4MQ==","user":{"login":"thebaer","id":1138779,"node_id":"MDQ6VXNlcjExMzg3Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1138779?v=4","gravatar_id":"","url":"https://api.github.com/users/thebaer","html_url":"https://github.com/thebaer","followers_url":"https://api.github.com/users/thebaer/followers","following_url":"https://api.github.com/users/thebaer/following{/other_user}","gists_url":"https://api.github.com/users/thebaer/gists{/gist_id}","starred_url":"https://api.github.com/users/thebaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebaer/subscriptions","organizations_url":"https://api.github.com/users/thebaer/orgs","repos_url":"https://api.github.com/users/thebaer/repos","events_url":"https://api.github.com/users/thebaer/events{/privacy}","received_events_url":"https://api.github.com/users/thebaer/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T00:47:36Z","updated_at":"2018-12-11T00:47:36Z","author_association":"MEMBER","body":"Mm I'm not seeing the same thing. Both of these payloads work on v0.5 and v0.6 (and should work just the same on v0.4, as there haven't been any changes with data parsing):\r\n\r\n```json\r\n{\"body\": \"Romney: \\\"I’m not concerned about the very poor. We have a safety net there. If it needs a repair , I’ll fix it.\\\" That sound Presidential?\"}\r\n```\r\nor this:\r\n```json\r\n{\"body\": \"Try to keep an open mind with this next statement, but…\"}\r\n```"}}
{"actor":{"display_login":"thebaer"}}