{"action":"created","issue":{"url":"https://api.github.com/repos/premake/premake-core/issues/264","labels_url":"https://api.github.com/repos/premake/premake-core/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/premake/premake-core/issues/264/comments","events_url":"https://api.github.com/repos/premake/premake-core/issues/264/events","html_url":"https://github.com/premake/premake-core/pull/264","id":105721206,"number":264,"title":"Added JSON encoding and decoding support","user":{"login":"tritao","id":602268,"avatar_url":"https://avatars.githubusercontent.com/u/602268?v=3","gravatar_id":"","url":"https://api.github.com/users/tritao","html_url":"https://github.com/tritao","followers_url":"https://api.github.com/users/tritao/followers","following_url":"https://api.github.com/users/tritao/following{/other_user}","gists_url":"https://api.github.com/users/tritao/gists{/gist_id}","starred_url":"https://api.github.com/users/tritao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tritao/subscriptions","organizations_url":"https://api.github.com/users/tritao/orgs","repos_url":"https://api.github.com/users/tritao/repos","events_url":"https://api.github.com/users/tritao/events{/privacy}","received_events_url":"https://api.github.com/users/tritao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-10T02:35:18Z","updated_at":"2015-10-07T16:22:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/premake/premake-core/pulls/264","html_url":"https://github.com/premake/premake-core/pull/264","diff_url":"https://github.com/premake/premake-core/pull/264.diff","patch_url":"https://github.com/premake/premake-core/pull/264.patch"},"body":"I originally threw this together as a proof-of-concept but realized that for my case just loading a Lua file directly probably works better.\r\n\r\nStill think this might be useful in the future though so wanted to share to see feedback.\r\n\r\nI adapted the Jansson Lua bindings from https://github.com/Twisol/lua_jansson. They look a bit complicated to me but it's because they do some special code for keeping track of nulls in JSON.\r\n\r\nI found these bindings later which seem to be much more simple for the same task: https://bitbucket.org/timostolz/luajson/src/7ebcb034dcf2/luajson.c\r\n\r\nBut since the original seems to work fine I didn't rework the code.\r\n"},"comment":{"url":"https://api.github.com/repos/premake/premake-core/issues/comments/146250896","html_url":"https://github.com/premake/premake-core/pull/264#issuecomment-146250896","issue_url":"https://api.github.com/repos/premake/premake-core/issues/264","id":146250896,"user":{"login":"tvandijck","id":451515,"avatar_url":"https://avatars.githubusercontent.com/u/451515?v=3","gravatar_id":"","url":"https://api.github.com/users/tvandijck","html_url":"https://github.com/tvandijck","followers_url":"https://api.github.com/users/tvandijck/followers","following_url":"https://api.github.com/users/tvandijck/following{/other_user}","gists_url":"https://api.github.com/users/tvandijck/gists{/gist_id}","starred_url":"https://api.github.com/users/tvandijck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvandijck/subscriptions","organizations_url":"https://api.github.com/users/tvandijck/orgs","repos_url":"https://api.github.com/users/tvandijck/repos","events_url":"https://api.github.com/users/tvandijck/events{/privacy}","received_events_url":"https://api.github.com/users/tvandijck/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T16:22:35Z","updated_at":"2015-10-07T16:22:35Z","body":"Honestly, I think we should come up with a better way to include things like this into premake... I'm not opposed, but I almost feel like this should really be a module, and I feel a little bit the same with libzip and curl... it be awesome if we could add C as well as Lua functionality through modules."}}