{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFoundation/neko/issues/115","repository_url":"https://api.github.com/repos/HaxeFoundation/neko","labels_url":"https://api.github.com/repos/HaxeFoundation/neko/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/neko/issues/115/comments","events_url":"https://api.github.com/repos/HaxeFoundation/neko/issues/115/events","html_url":"https://github.com/HaxeFoundation/neko/issues/115","id":140073080,"number":115,"title":"Json.stringify(<class>) infinite recursion","user":{"login":"jcward","id":2192439,"avatar_url":"https://avatars.githubusercontent.com/u/2192439?v=3","gravatar_id":"","url":"https://api.github.com/users/jcward","html_url":"https://github.com/jcward","followers_url":"https://api.github.com/users/jcward/followers","following_url":"https://api.github.com/users/jcward/following{/other_user}","gists_url":"https://api.github.com/users/jcward/gists{/gist_id}","starred_url":"https://api.github.com/users/jcward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcward/subscriptions","organizations_url":"https://api.github.com/users/jcward/orgs","repos_url":"https://api.github.com/users/jcward/repos","events_url":"https://api.github.com/users/jcward/events{/privacy}","received_events_url":"https://api.github.com/users/jcward/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-11T03:10:58Z","updated_at":"2016-03-11T03:10:58Z","closed_at":null,"body":"Json.stringify has an infinite recursion error while stringifying a class in neko. CPP doesn't have this problem.\r\n\r\nTestcase:\r\n\r\n```\r\necho \"class Main { public static function main() { trace(Main); trace(haxe.Json.stringify(Main)); } }\" > Main.hx\r\nhaxe -main Main -neko test.n\r\nneko test.n \r\n```\r\n\r\nCPP output:\r\n```\r\nMain.hx:1: Main\r\nMain.hx:1: {}\r\n```\r\n\r\nNeko output:\r\n```\r\nMain.hx:1: { __name__ => [Main], main => #function:0, prototype => { __class__ => ..., __serialize => #function:0 } }\r\nCalled from ? line 1\r\nCalled from Main.hx line 1\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 44\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 83\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 180\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 126\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 180\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 83\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 180\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 126\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 180\r\nCalled from /home/jward/tools/haxe/std/haxe/format/JsonPrinter.hx line 83\r\n...\r\n```\r\n"}}