Places:JSONSerialization

From MozillaWiki
Revision as of 00:03, 13 November 2007 by Dietrich (talk | contribs) (New page: When items such as bookmarks or folders are copied or dragged in the Places system, they're passed around as a serialized Javascript object. Folder nodes: { folder: {item node for the fo...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

When items such as bookmarks or folders are copied or dragged in the Places system, they're passed around as a serialized Javascript object.

Folder nodes:

{ folder: {item node for the folder},

 children: [],
 type: self.TYPE_X_MOZ_PLACE_CONTAINER

}

Item nodes:

{

 id: int64,
 title: string,
 parent: int64,
 index: int32,
 annos: [
 ],
 type: string

}

Bookmark-specific node properties:

uri: string keyword: string

Livemark-specific node properties:

uri: { feed: feedURI, site: siteURI }