Am 05.04.2015 um 06:24 schrieb Sebastiaan Koppe:
(...)
I can probably use zip to get the quotes around the names, to avoid
concatenation. But it works fine the way it is. The problem is, the
following doesn't:

```
void csvRow(const Json jsonObject)
{
     return values(jsonObject.get!(Json[string])).stdMap!(a
=>`"`~a~`"`).joiner(",");
}
```

From the looks of it, the problem is that the concatenation there yields a Json value instead of a string (because concatenation also works for adding elements to a JSON array for example). If all elements are known to be strings, using `"`~a.get!string~`"` should make it work.

  • Vibe.d json to csv Sebastiaan Koppe via Digitalmars-d-learn
    • Re: Vibe.d json to csv Sönke Ludwig via Digitalmars-d-learn

Reply via email to