{"action":"created","issue":{"url":"https://api.github.com/repos/heartexlabs/label-studio/issues/90","repository_url":"https://api.github.com/repos/heartexlabs/label-studio","labels_url":"https://api.github.com/repos/heartexlabs/label-studio/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/heartexlabs/label-studio/issues/90/comments","events_url":"https://api.github.com/repos/heartexlabs/label-studio/issues/90/events","html_url":"https://github.com/heartexlabs/label-studio/issues/90","id":506369694,"node_id":"MDU6SXNzdWU1MDYzNjk2OTQ=","number":90,"title":"Can I create completion JSON files using my own code (to migrate annotations from other sources)?","user":{"login":"vijaygill","id":8999486,"node_id":"MDQ6VXNlcjg5OTk0ODY=","avatar_url":"https://avatars2.githubusercontent.com/u/8999486?v=4","gravatar_id":"","url":"https://api.github.com/users/vijaygill","html_url":"https://github.com/vijaygill","followers_url":"https://api.github.com/users/vijaygill/followers","following_url":"https://api.github.com/users/vijaygill/following{/other_user}","gists_url":"https://api.github.com/users/vijaygill/gists{/gist_id}","starred_url":"https://api.github.com/users/vijaygill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijaygill/subscriptions","organizations_url":"https://api.github.com/users/vijaygill/orgs","repos_url":"https://api.github.com/users/vijaygill/repos","events_url":"https://api.github.com/users/vijaygill/events{/privacy}","received_events_url":"https://api.github.com/users/vijaygill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shevchenkonik","id":8392253,"node_id":"MDQ6VXNlcjgzOTIyNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8392253?v=4","gravatar_id":"","url":"https://api.github.com/users/shevchenkonik","html_url":"https://github.com/shevchenkonik","followers_url":"https://api.github.com/users/shevchenkonik/followers","following_url":"https://api.github.com/users/shevchenkonik/following{/other_user}","gists_url":"https://api.github.com/users/shevchenkonik/gists{/gist_id}","starred_url":"https://api.github.com/users/shevchenkonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shevchenkonik/subscriptions","organizations_url":"https://api.github.com/users/shevchenkonik/orgs","repos_url":"https://api.github.com/users/shevchenkonik/repos","events_url":"https://api.github.com/users/shevchenkonik/events{/privacy}","received_events_url":"https://api.github.com/users/shevchenkonik/received_events","type":"User","site_admin":false},"assignees":[{"login":"shevchenkonik","id":8392253,"node_id":"MDQ6VXNlcjgzOTIyNTM=","avatar_url":"https://avatars1.githubusercontent.com/u/8392253?v=4","gravatar_id":"","url":"https://api.github.com/users/shevchenkonik","html_url":"https://github.com/shevchenkonik","followers_url":"https://api.github.com/users/shevchenkonik/followers","following_url":"https://api.github.com/users/shevchenkonik/following{/other_user}","gists_url":"https://api.github.com/users/shevchenkonik/gists{/gist_id}","starred_url":"https://api.github.com/users/shevchenkonik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shevchenkonik/subscriptions","organizations_url":"https://api.github.com/users/shevchenkonik/orgs","repos_url":"https://api.github.com/users/shevchenkonik/repos","events_url":"https://api.github.com/users/shevchenkonik/events{/privacy}","received_events_url":"https://api.github.com/users/shevchenkonik/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2019-10-13T19:27:33Z","updated_at":"2019-10-13T22:42:55Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have some datasets which have annotations in JSON or CSV. I like this tool already (this is my first day of use!) and I am thinking of converting my other annotations into the format supported by label-studio.\r\n\r\nIs the relation of a completion json file back to the image based on the \"image\" field in the \"data\" object of the JSON file?\r\n\r\nI hope my question makes sense. Please ask if it needs to be rephrased."},"comment":{"url":"https://api.github.com/repos/heartexlabs/label-studio/issues/comments/541466872","html_url":"https://github.com/heartexlabs/label-studio/issues/90#issuecomment-541466872","issue_url":"https://api.github.com/repos/heartexlabs/label-studio/issues/90","id":541466872,"node_id":"MDEyOklzc3VlQ29tbWVudDU0MTQ2Njg3Mg==","user":{"login":"deppp","id":28912,"node_id":"MDQ6VXNlcjI4OTEy","avatar_url":"https://avatars3.githubusercontent.com/u/28912?v=4","gravatar_id":"","url":"https://api.github.com/users/deppp","html_url":"https://github.com/deppp","followers_url":"https://api.github.com/users/deppp/followers","following_url":"https://api.github.com/users/deppp/following{/other_user}","gists_url":"https://api.github.com/users/deppp/gists{/gist_id}","starred_url":"https://api.github.com/users/deppp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deppp/subscriptions","organizations_url":"https://api.github.com/users/deppp/orgs","repos_url":"https://api.github.com/users/deppp/repos","events_url":"https://api.github.com/users/deppp/events{/privacy}","received_events_url":"https://api.github.com/users/deppp/received_events","type":"User","site_admin":false},"created_at":"2019-10-13T22:42:55Z","updated_at":"2019-10-13T22:42:55Z","author_association":"COLLABORATOR","body":"@vijaygill \r\n\r\nHey,\r\n\r\nI'd suggest taking a look at one of the `tasks.json` found in examples, it's basically a list of JSON objects. Each key in that object you can further use in the config, for example, a JSON file like this:\r\n\r\n```json \r\n[{ \"text\": \"Piece of text\" }, { \"text\": \"Piece of text\" } ]\r\n```\r\n\r\nAnd config:\r\n\r\n```html\r\n<View><Text name=\"txt\" value=\"$text\"></Text></View>\r\n```\r\n\r\nAs you can see `$text` will be connected to every object in the JSON file. If you create a completion for you will get `1.json` and `2.json`.\r\n\r\nPlease let me know if that answers your question."}}
{"actor":{"display_login":"deppp"}}