var b = JSON.Instance.ToObject<firefoxbookmark>(JSONCONTENT);
b is empty (no items parsed).
the json content is basically firefox 4 bookmark backup file, which you can find one in C:\Users\User\AppData\Roaming\Mozilla\Firefox\Profiles\[random folder name]\bookmarkbackups\
you may ignore the special characters found in the json content.
btw, the poco object must be public?
-------------------------------json content down here-----------------------------
{"title":"","id":1,"dateAdded":1301645281528000,"lastModified":1301823230784000,"type":"text/x-moz-place-container","root":"placesRoot","children":[{"title":"书签菜单","id":2,"parent":1,"dateAdded":1301645281529000,"lastModified":1301645281925000,"type":"text/x-moz-place-container","root":"bookmarksMenuFolder","children":[{"title":"最近使用的书签","id":14,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentlyBookmarked"}],"type":"text/x-moz-place","uri":"place:folder=BOOKMARKS_MENU&folder=UNFILED_BOOKMARKS&folder=TOOLBAR&sort=12&excludeQueries=1&excludeItemIfParentHasAnnotation=livemark%2FfeedURI&maxResults=10&queryType=1"},{"index":1,"title":"最近使用的标签","id":15,"parent":2,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"RecentTags"}],"type":"text/x-moz-place","uri":"place:sort=14&type=6&maxResults=10&queryType=1"},{"index":2,"title":"","id":16,"parent":2,"dateAdded":1301645281925000,"lastModified":1301645281925000,"type":"text/x-moz-place-separator"},{"index":3,"title":"Mozilla Firefox","id":8,"parent":2,"dateAdded":1301645281852000,"lastModified":1301645281855000,"type":"text/x-moz-place-container","children":[{"title":"帮助和教程","id":9,"parent":8,"dateAdded":1301645281852000,"lastModified":1301645281853000,"type":"text/x-moz-place","uri":"http://www.mozilla.com/zh-CN/firefox/help/"},{"index":1,"title":"自定义 Firefox","id":10,"parent":8,"dateAdded":1301645281853000,"lastModified":1301645281854000,"type":"text/x-moz-place","uri":"http://www.mozilla.com/zh-CN/firefox/customize/"},{"index":2,"title":"加入进来","id":11,"parent":8,"dateAdded":1301645281854000,"lastModified":1301645281855000,"type":"text/x-moz-place","uri":"http://www.mozilla.com/zh-CN/firefox/community/"},{"index":3,"title":"关于我们","id":12,"parent":8,"dateAdded":1301645281855000,"lastModified":1301645281856000,"type":"text/x-moz-place","uri":"http://www.mozilla.com/zh-CN/about/"}]}]},{"index":1,"title":"书签工具栏","id":3,"parent":1,"dateAdded":1301645281529000,"lastModified":1301823253028000,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"添加到此文件夹的书签会被显示到书签工具栏中"}],"type":"text/x-moz-place-container","root":"toolbarFolder","children":[{"title":"火狐官方站点","id":17,"parent":3,"dateAdded":1301645282022000,"lastModified":1301645282142000,"type":"text/x-moz-place-container","children":[{"title":"火狐社区","id":18,"parent":17,"dateAdded":1301645282033000,"lastModified":1301645282033000,"type":"text/x-moz-place","uri":"http://mozilla.com.cn/?src=ffbookmark"},{"index":1,"title":"火狐DIY","id":19,"parent":17,"dateAdded":1301645282067000,"lastModified":1301645282067000,"type":"text/x-moz-place","uri":"http://diy.mozilla.com.cn/?src=ffbookmark"},{"index":2,"title":"火狐扩展精选","id":20,"parent":17,"dateAdded":1301645282100000,"lastModified":1301645282100000,"type":"text/x-moz-place","uri":"http://mozilla.com.cn/selections/?src=ffbookmark"},{"index":3,"title":"火狐商店","id":21,"parent":17,"dateAdded":1301645282101000,"lastModified":1301645282101000,"type":"text/x-moz-place","uri":"http://firefox001.taobao.com/"},{"index":4,"title":"谋智网络官方网站","id":22,"parent":17,"dateAdded":1301645282142000,"lastModified":1301645282142000,"type":"text/x-moz-place","uri":"http://www.firefox.com.cn/"}]},{"index":1,"title":"访问最多","id":13,"parent":3,"annos":[{"name":"Places/SmartBookmark","flags":0,"expires":4,"mimeType":null,"type":3,"value":"MostVisited"}],"type":"text/x-moz-place","uri":"place:sort=8&redirectsMode=2&maxResults=10"},{"index":2,"title":"新手上路","id":6,"parent":3,"dateAdded":1301645281850000,"lastModified":1301645281851000,"type":"text/x-moz-place","uri":"http://www.mozilla.com/zh-CN/firefox/central/"},{"index":3,"title":"最新头条","id":7,"parent":3,"dateAdded":1301645281851000,"lastModified":1301823209654000,"livemark":1,"annos":[{"name":"placesInternal/READ_ONLY","flags":0,"expires":4,"mimeType":null,"type":1,"value":1},{"name":"livemark/feedURI","flags":0,"expires":4,"mimeType":null,"type":3,"value":"http://fxfeeds.mozilla.com/zh-CN/firefox/headlines.xml"},{"name":"livemark/siteURI","flags":0,"expires":4,"mimeType":null,"type":3,"value":"http://roll.news.sina.com.cn/s/"},{"name":"livemark/expiration","flags":0,"expires":4,"mimeType":null,"type":2,"value":1301826809654}],"type":"text/x-moz-place-container","children":[]},{"index":4,"title":"网址大全","id":23,"parent":3,"dateAdded":1301645282187000,"lastModified":1301645282222000,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"火狐网址大全"}],"type":"text/x-moz-place","uri":"http://www.huohu123.com/?src=ffbookmark"},{"index":5,"title":"智能实验室","id":42,"parent":3,"dateAdded":1301645344543000,"lastModified":1301645344543000,"type":"text/x-moz-place","uri":"http://www.xnlab.com/zh/default.htm","charset":"GB2312"},{"index":6,"title":"cnBeta.COM_网友媒体与言论平台","id":68,"parent":3,"dateAdded":1301823253028000,"lastModified":1301823253028000,"type":"text/x-moz-place","uri":"http://www.cnbeta.com/","charset":"GB2312"}]},{"index":2,"title":"标签","id":4,"parent":1,"dateAdded":1301645281529000,"lastModified":1301645281530000,"type":"text/x-moz-place-container","root":"tagsFolder","children":[]},{"index":3,"title":"未分类书签","id":5,"parent":1,"dateAdded":1301645281530000,"lastModified":1301823246860000,"type":"text/x-moz-place-container","root":"unfiledBookmarksFolder","children":[{"title":"智能实验室","id":41,"parent":5,"dateAdded":1301645325248000,"lastModified":1301645325284000,"type":"text/x-moz-place","uri":"http://www.xnlab.com/zh/default.htm","charset":"GB2312"},{"index":1,"title":"cnBeta.COM_网友媒体与言论平台","id":67,"parent":5,"dateAdded":1301823246860000,"lastModified":1301823246878000,"annos":[{"name":"bookmarkProperties/description","flags":0,"expires":4,"mimeType":null,"type":3,"value":"cnBeta.com为您提供最新最快IT业界资讯,报导立场公正中立,网友讨论气氛浓厚.创造出最适合目标人群阅读的新闻、评论、观点和专访"}],"type":"text/x-moz-place","uri":"http://www.cnbeta.com/","charset":"GB2312"}]}]}
Regards,
unruledboy_at_gmail_dot_com
http://www.xnlab.com
|