Bug 20330 – json toString with outputrange

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-10-28T16:05:19Z
Last change time
2019-10-30T10:18:21Z
Assigned to
No Owner
Creator
Robert Schadek

Comments

Comment #0 by rschadek — 2019-10-28T16:05:19Z
``` 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.
Comment #1 by dlang-bot — 2019-10-29T09:18:07Z
@burner created dlang/phobos pull request #7258 "Issue20330 json toString with OutRange" mentioning this issue: - Issue20330 json toString with OutRange https://github.com/dlang/phobos/pull/7258
Comment #2 by dlang-bot — 2019-10-30T10:16:20Z
dlang/phobos pull request #7258 "Issue20330 json toString with OutRange" was merged into master: - 057d7ed3267cd695c55d0bb4cabba53cde383f17 by Robert Schadek: Issue20330 json toString with OutRange more style https://github.com/dlang/phobos/pull/7258