std.data.json formal review

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 29 11:51:27 PDT 2015


On 2015-07-29 20:33, Walter Bright wrote:

> On 7/29/2015 3:10 AM, Jacob Carlborg wrote:
>> But in most cases I think there will be one root node, of type object.
>
> An object is a collection of other Values.
>
>
>  > In that case it would be range with only one element? How does that
> help?
>
> I don't understand the question.

I guess I'm finding it difficult to picture a JSON structure as a range. 
How would the following JSON be returned as a range?

{
   "a": 1,
   "b": [2, 3],
   "c": { "d": 4 }
}

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list