{"action":"created","issue":{"url":"https://api.github.com/repos/djhvscf/bootstrap-table-flatJSON/issues/5","labels_url":"https://api.github.com/repos/djhvscf/bootstrap-table-flatJSON/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/djhvscf/bootstrap-table-flatJSON/issues/5/comments","events_url":"https://api.github.com/repos/djhvscf/bootstrap-table-flatJSON/issues/5/events","html_url":"https://github.com/djhvscf/bootstrap-table-flatJSON/issues/5","id":79688469,"number":5,"title":"Feature request: exposed expandJSON method","user":{"login":"jtrumbull","id":2381008,"avatar_url":"https://avatars.githubusercontent.com/u/2381008?v=3","gravatar_id":"","url":"https://api.github.com/users/jtrumbull","html_url":"https://github.com/jtrumbull","followers_url":"https://api.github.com/users/jtrumbull/followers","following_url":"https://api.github.com/users/jtrumbull/following{/other_user}","gists_url":"https://api.github.com/users/jtrumbull/gists{/gist_id}","starred_url":"https://api.github.com/users/jtrumbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtrumbull/subscriptions","organizations_url":"https://api.github.com/users/jtrumbull/orgs","repos_url":"https://api.github.com/users/jtrumbull/repos","events_url":"https://api.github.com/users/jtrumbull/events{/privacy}","received_events_url":"https://api.github.com/users/jtrumbull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-23T01:54:07Z","updated_at":"2015-05-23T02:00:58Z","closed_at":null,"body":"@djhvscf: I forked this repository and was going to create some PRs. Didn't want to get to far if this is something that you are working on -or did't want in the extension.\r\n\r\nI don't have any working code yet, but the function would reverse the results of flatJSON, to the data's native JSON format.\r\n\r\n```javascript\r\n$.fn.bootstrapTable.methods.push('expandJSON');\r\n```\r\nUsage:\r\n```javascript\r\n// On Array of Objects\r\n$('#table').bootstrapTable('expandJSON', [\r\n    {\r\n        \"user.name\": \"jtrumbull\",\r\n        \"user.mood\": \"bored\",\r\n        \"user.array.0.key1\": \"a\"\r\n        \"user.array.1.key1\": \"b\"\r\n        \"user.array.3.key1\": \"c\"\r\n    },\r\n    {...},\r\n    {...}\r\n]);\r\n\r\n// or on single Object\r\n$('#table').bootstrapTable('expandJSON', {...});\r\n```\r\n\r\nWould produce:\r\n```json\r\n[\r\n    {\r\n        \"user\": {\r\n            \"name\": \"jtrumbull\",\r\n            \"mood\": \"bored\",\r\n            \"array\": [\r\n                { \"key1\": \"a\" },\r\n                { \"key1\": \"b\" },\r\n                { \"key1\": \"c\" }\r\n            ]\r\n        }\r\n    },\r\n    {...},\r\n    {...}\r\n]\r\n```"},"comment":{"url":"https://api.github.com/repos/djhvscf/bootstrap-table-flatJSON/issues/comments/104815557","html_url":"https://github.com/djhvscf/bootstrap-table-flatJSON/issues/5#issuecomment-104815557","issue_url":"https://api.github.com/repos/djhvscf/bootstrap-table-flatJSON/issues/5","id":104815557,"user":{"login":"djhvscf","id":4496763,"avatar_url":"https://avatars.githubusercontent.com/u/4496763?v=3","gravatar_id":"","url":"https://api.github.com/users/djhvscf","html_url":"https://github.com/djhvscf","followers_url":"https://api.github.com/users/djhvscf/followers","following_url":"https://api.github.com/users/djhvscf/following{/other_user}","gists_url":"https://api.github.com/users/djhvscf/gists{/gist_id}","starred_url":"https://api.github.com/users/djhvscf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djhvscf/subscriptions","organizations_url":"https://api.github.com/users/djhvscf/orgs","repos_url":"https://api.github.com/users/djhvscf/repos","events_url":"https://api.github.com/users/djhvscf/events{/privacy}","received_events_url":"https://api.github.com/users/djhvscf/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T02:00:58Z","updated_at":"2015-05-23T02:00:58Z","body":"Go ahead with PRs and any other change that you want to do.. I would like to improve this extension"}}