www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20330] New: json toString with outputrange

https://issues.dlang.org/show_bug.cgi?id=20330

          Issue ID: 20330
           Summary: json toString with outputrange
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: rschadek symmetryinvestments.com

```
JSONValue jv;

auto app = appender!string();
formattedWrite(app, "%s", jv);
```

is currently not possible as the function std.json.toJSON does not take a
output
range.

--
Oct 28 2019