Re: asdf get first value from a json string.

2020-11-09 Thread Vino via Digitalmars-d-learn
On Sunday, 8 November 2020 at 19:31:50 UTC, frame wrote: On Sunday, 8 November 2020 at 19:29:39 UTC, frame wrote: On Sunday, 8 November 2020 at 16:30:40 UTC, Vino wrote: Request your help on how to get the first value of "type" from the below json, the expected output required is as below,

Re: asdf get first value from a json string.

2020-11-08 Thread frame via Digitalmars-d-learn
On Sunday, 8 November 2020 at 19:29:39 UTC, frame wrote: On Sunday, 8 November 2020 at 16:30:40 UTC, Vino wrote: Request your help on how to get the first value of "type" from the below json, the expected output required is as below, You need a data structure to work with, eg: static struc

Re: asdf get first value from a json string.

2020-11-08 Thread frame via Digitalmars-d-learn
On Sunday, 8 November 2020 at 16:30:40 UTC, Vino wrote: Request your help on how to get the first value of "type" from the below json, the expected output required is as below, You need a data structure to work with, eg: static struct S { string characteristicValue; } foreach (ref j; pa

asdf get first value from a json string.

2020-11-08 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to get the first value of "type" from the below json, the expected output required is as below, {"characteristicValue":"TT,t...@dev.com,DEV"} output1: TT output2: t...@dev.com Code: /+dub.sdl: dependency "asdf" version="~>0.6.6" +/ import std; import asdf