Skip to content

eliminate need for using square brackets #3

@bosky101

Description

@bosky101

// your favourite micro-blogging site
var json1 = { 
    "id":"bosky101", 
    "following": [ 
    { name: {first:"foo"}},
    { name:{first:"bar"}}
    ] 
};

// as of 0.0.2
_json(json1).$('following name'); // will not return [ {first:"foo"}, {first:"bar"}]

In other words _json until 0.0.2, does not parse lists since there then will be N results that are mapped, that need to be reduced.

This will be fixed in 0.0.3, because of which _json is only suggested for use in production from 0.0.3 onwards

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions