{"action":"created","issue":{"url":"https://api.github.com/repos/IQSS/dataverse/issues/3533","repository_url":"https://api.github.com/repos/IQSS/dataverse","labels_url":"https://api.github.com/repos/IQSS/dataverse/issues/3533/labels{/name}","comments_url":"https://api.github.com/repos/IQSS/dataverse/issues/3533/comments","events_url":"https://api.github.com/repos/IQSS/dataverse/issues/3533/events","html_url":"https://github.com/IQSS/dataverse/issues/3533","id":195669799,"number":3533,"title":"native API for creating dataverse reports parse error for valid json","user":{"login":"pameyer","id":10261853,"avatar_url":"https://avatars.githubusercontent.com/u/10261853?v=3","gravatar_id":"","url":"https://api.github.com/users/pameyer","html_url":"https://github.com/pameyer","followers_url":"https://api.github.com/users/pameyer/followers","following_url":"https://api.github.com/users/pameyer/following{/other_user}","gists_url":"https://api.github.com/users/pameyer/gists{/gist_id}","starred_url":"https://api.github.com/users/pameyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pameyer/subscriptions","organizations_url":"https://api.github.com/users/pameyer/orgs","repos_url":"https://api.github.com/users/pameyer/repos","events_url":"https://api.github.com/users/pameyer/events{/privacy}","received_events_url":"https://api.github.com/users/pameyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T22:57:12Z","updated_at":"2016-12-15T19:03:10Z","closed_at":null,"body":"native API endpoint for creating a dataverse reports parse error for valid JSON.  \r\n\r\n`curl -X POST -d @l0.json -H \"X-Dataverse-key: $admin_api_key\" $dataverse_host/api/dataverses/dv_alias `\r\n\r\nreturns (w\\ http 400):\r\n{\"status\":\"ERROR\",\"message\":\"Error parsing Json: Invalid token=EOF at (line no=1, column no=0, offset=-1). Expected tokens are: [CURLYOPEN, SQUAREOPEN]\"}\r\n\r\n###\r\n\r\nl01.json:\r\n{\r\n\t\"name\":\"dv_name\",\r\n\t\"alias\":\"dv_alias\",\r\n\t\"dataverseContacts\":[ {\"contactEmail\":\"foo+dataverse@example.com\"} ],\r\n\t\"affiliation\":\"aff\",\r\n\t\"dataverseType\":\"LABORATORY\"\r\n}\r\n\r\n###\r\n\r\njq and python 2.7.8 json library both think this is valid JSON.  Could be either an endpoint glitch being reported to the user as parser error, or parser error - haven't investigated further yet. "},"comment":{"url":"https://api.github.com/repos/IQSS/dataverse/issues/comments/267411883","html_url":"https://github.com/IQSS/dataverse/issues/3533#issuecomment-267411883","issue_url":"https://api.github.com/repos/IQSS/dataverse/issues/3533","id":267411883,"user":{"login":"pameyer","id":10261853,"avatar_url":"https://avatars.githubusercontent.com/u/10261853?v=3","gravatar_id":"","url":"https://api.github.com/users/pameyer","html_url":"https://github.com/pameyer","followers_url":"https://api.github.com/users/pameyer/followers","following_url":"https://api.github.com/users/pameyer/following{/other_user}","gists_url":"https://api.github.com/users/pameyer/gists{/gist_id}","starred_url":"https://api.github.com/users/pameyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pameyer/subscriptions","organizations_url":"https://api.github.com/users/pameyer/orgs","repos_url":"https://api.github.com/users/pameyer/repos","events_url":"https://api.github.com/users/pameyer/events{/privacy}","received_events_url":"https://api.github.com/users/pameyer/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T19:03:10Z","updated_at":"2016-12-15T19:03:10Z","body":"same behavior for using \"--upload-file l0.json\" instead of \"@l0.json\""}}
{"actor":{"display_login":"pameyer"}}