Bug 3440 – invalid -X JSON output, a comma is missing

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2009-10-25T20:34:00Z
Last change time
2015-06-09T01:26:56Z
Assigned to
nobody
Creator
echochamber

Comments

Comment #0 by echochamber — 2009-10-25T20:34:50Z
% cat foo.d module foo; private { int i; typedef int[int] MyAA; } % dmd -X -c foo.d % cat -n foo.json 1 { 2 "name" : "foo", 3 "kind" : "module", 4 "file" : "foo.d", 5 "members" : [ 6 { 7 "name" : "i", 8 "kind" : "variable", 9 "type" : "int", 10 "line" : 4} 11 { 12 "name" : "MyAA", 13 "kind" : "typedef", 14 "type" : "MyAA", 15 "line" : 5, 16 "base" : "int[int]"} 17 ] 18 } % There should be a comma between lines 10 and 11.
Comment #1 by ary — 2009-10-26T01:01:09Z
Please always search bugs before creating new ones. :-) *** This issue has been marked as a duplicate of issue 3415 ***