{"action":"opened","issue":{"url":"https://api.github.com/repos/cortexlang/cortex/issues/286","labels_url":"https://api.github.com/repos/cortexlang/cortex/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/cortexlang/cortex/issues/286/comments","events_url":"https://api.github.com/repos/cortexlang/cortex/issues/286/events","html_url":"https://github.com/cortexlang/cortex/issues/286","id":94605027,"number":286,"title":"Correct reference name bug in JSON serializer","user":{"login":"jleeothon","id":6202537,"avatar_url":"https://avatars.githubusercontent.com/u/6202537?v=3","gravatar_id":"","url":"https://api.github.com/users/jleeothon","html_url":"https://github.com/jleeothon","followers_url":"https://api.github.com/users/jleeothon/followers","following_url":"https://api.github.com/users/jleeothon/following{/other_user}","gists_url":"https://api.github.com/users/jleeothon/gists{/gist_id}","starred_url":"https://api.github.com/users/jleeothon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleeothon/subscriptions","organizations_url":"https://api.github.com/users/jleeothon/orgs","repos_url":"https://api.github.com/users/jleeothon/repos","events_url":"https://api.github.com/users/jleeothon/events{/privacy}","received_events_url":"https://api.github.com/users/jleeothon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cortexlang/cortex/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/cortexlang/cortex/labels/CodeGenerators","name":"CodeGenerators","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-12T22:24:29Z","updated_at":"2015-07-12T22:24:29Z","closed_at":null,"body":"The following code:\r\n\r\n```C\r\nstruct cx_serializer_s serializer = cx_json_ser(CX_PRIVATE, CX_NOT, CX_SERIALIZER_TRACE_NEVER);\r\ncx_json_ser_t jsonData = {NULL, NULL, 0, 0, 0, TRUE, TRUE, TRUE, TRUE};\r\ncx_serialize(&serializer, cx_int_o, &jsonData);\r\ncx_string s = jsonData.buffer;\r\nprintf(\"\\n%s\\n\", s);\r\n\r\n\r\n```\r\n\r\nProduced the following json:\r\n\r\n```JS\r\n{\r\n    \"meta\": {\r\n        \"name\": \"int\",\r\n        \"type\": \"::cortex::lang::class\",\r\n        \"states\": \"V|DCL|DEF\",\r\n        \"attributes\": \"S\",\r\n        \"parent\": \"::cortex::lang\",\r\n        \"childCount\": 3\r\n    },\r\n    \"value\": {\r\n        \"@::cortex::lang::struct\": {\r\n            \"@::cortex::lang::interface\": {\r\n                \"@::cortex::lang::type\": {\r\n                    \"kind\": \"@E COMPOSITE\",\r\n                    \"reference\": true,\r\n                    \"defaultType\": \"@R ::cortex::lang::member\",\r\n                    \"parentType\": null,\r\n                    \"parentState\": \"@M DECLARED|DEFINED\"\r\n                },\r\n                \"kind\": \"@E CLASS\",\r\n                \"base\": \"@R ::cortex::lang::primitive;??\" // <<< BUG HERE\r\n            },\r\n            \"baseAccess\": \"@M GLOBAL\"\r\n        },\r\n        \"implements\": []\r\n    },\r\n    \"scope\": [\r\n        {\r\n            \"name\": \"init()\",\r\n            \"type\": \"::cortex::lang::method\",\r\n            \"states\": \"V|DCL|DEF\",\r\n            \"attributes\": \"S\",\r\n            \"childCount\": 0\r\n        },\r\n        {\r\n            \"name\": \"max\",\r\n            \"type\": \"::cortex::lang::member\",\r\n            \"states\": \"V|DCL|DEF\",\r\n            \"attributes\": \"S\",\r\n            \"childCount\": 0\r\n        },\r\n        {\r\n            \"name\": \"min\",\r\n            \"type\": \"::cortex::lang::member\",\r\n            \"states\": \"V|DCL|DEF\",\r\n            \"attributes\": \"S\",\r\n            \"childCount\": 0\r\n        }\r\n    ]\r\n}\r\n```"}}