{"action":"created","issue":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/3","labels_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/3/comments","events_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/3/events","html_url":"https://github.com/tabalinas/jsgrid/issues/3","id":55714097,"number":3,"title":"Get fields from json","user":{"login":"markdhel","id":10735948,"avatar_url":"https://avatars.githubusercontent.com/u/10735948?v=3","gravatar_id":"","url":"https://api.github.com/users/markdhel","html_url":"https://github.com/markdhel","followers_url":"https://api.github.com/users/markdhel/followers","following_url":"https://api.github.com/users/markdhel/following{/other_user}","gists_url":"https://api.github.com/users/markdhel/gists{/gist_id}","starred_url":"https://api.github.com/users/markdhel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markdhel/subscriptions","organizations_url":"https://api.github.com/users/markdhel/orgs","repos_url":"https://api.github.com/users/markdhel/repos","events_url":"https://api.github.com/users/markdhel/events{/privacy}","received_events_url":"https://api.github.com/users/markdhel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T04:47:19Z","updated_at":"2015-01-29T04:20:49Z","closed_at":null,"body":"First of all, great plugin! I would like to ask if it's possible as well to get the fields and it's config from json? Thanks."},"comment":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/comments/71967037","html_url":"https://github.com/tabalinas/jsgrid/issues/3#issuecomment-71967037","issue_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/3","id":71967037,"user":{"login":"markdhel","id":10735948,"avatar_url":"https://avatars.githubusercontent.com/u/10735948?v=3","gravatar_id":"","url":"https://api.github.com/users/markdhel","html_url":"https://github.com/markdhel","followers_url":"https://api.github.com/users/markdhel/followers","following_url":"https://api.github.com/users/markdhel/following{/other_user}","gists_url":"https://api.github.com/users/markdhel/gists{/gist_id}","starred_url":"https://api.github.com/users/markdhel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markdhel/subscriptions","organizations_url":"https://api.github.com/users/markdhel/orgs","repos_url":"https://api.github.com/users/markdhel/repos","events_url":"https://api.github.com/users/markdhel/events{/privacy}","received_events_url":"https://api.github.com/users/markdhel/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T04:20:49Z","updated_at":"2015-01-29T04:20:49Z","body":"Thanks Artem! What I mean is something like this, i have a json with the results and fields details. I would like to call the fields directly from the json. \r\n`{\r\n\t\"results\": [{\r\n\t\t\"Name\": \"Otto Clay\",\r\n\t\t\"Age\": 61,\r\n\t\t\"Country\": 6,\r\n\t\t\"Address\": \"Ap #897-1459 Quam Avenue\",\r\n\t\t\"Married\": false\r\n\t},\r\n\t{\r\n\t\t\"Name\": \"Connor Johnston\",\r\n\t\t\"Age\": 73,\r\n\t\t\"Country\": 7,\r\n\t\t\"Address\": \"Ap #370-4647 Dis Av.\",\r\n\t\t\"Married\": false\r\n\t},\r\n\t{\r\n\t\t\"Name\": \"Lacey Hess\",\r\n\t\t\"Age\": 29,\r\n\t\t\"Country\": 7,\r\n\t\t\"Address\": \"Ap #365-8835 Integer St.\",\r\n\t\t\"Married\": false\r\n\t}],\r\n\t\"fields\": [{\r\n\t\t\"name\": \"Name\",\r\n\t\t\"type\": \"text\"\r\n\t},\r\n\t{\r\n\t\t\"name\": \"Age\",\r\n\t\t\"type\": \"number\"\r\n\t},\r\n\t{\r\n\t\t\"name\": \"Address\",\r\n\t\t\"type\": \"text\"\r\n\t},\r\n\t{\r\n\t\t\"name\": \"Married\",\r\n\t\t\"type\": \"checkbox\",\r\n\t\t\"title\": \"Is Married\",\r\n\t\t\"sorting\": true\r\n\t},\r\n\t{\r\n\t\t\"type\": \"control\"\r\n\t}]\r\n}`\r\n\r\nI was able to make this work already i just created a new function to process the the json details and pass the needed details to `loadData` and `fields`. Thanks again!\r\n\r\n\r\n"}}