Export <UL><LI> elements based in a model


I have a <ul> with some <li> nodes that represent's node and sub-nodes...

What I need is a script to walk into <ul> <li> nodes enumerating exactly the same way like the browser does, but in a text mode based in a model of export...

To understand, take a look in the attached image... the result should be the following...

The result can be assigned to a <textarea> element

"categories": [

{"id": 0001,

"name": "Category Node 1",

"subcategories": [00011,00012,00014,00015,00016],


{"id": 00011,

"name": "Category Subnode 1 from Node 1",

"subcategories": [],


{"id": 00012,

"name": "Category Subnode 2 from Node 1",

"subcategories": [000121,000122],


{"id": 000121,

"name": "Category Subnode 1 from Subnode 2",

"subcategories": [],


{"id": 000122,

"name": "Category Subnode 2 from Subnode 2",

"subcategories": [],


{"id": 00014,

"name": "Category Subnode 4 from Node 1",

"subcategories": [000141,000142],


{"id": 000141,

"name": "Category Subnode 1 from Subnode 4",

"subcategories": [],


{"id": 000142,

"name": "Category Subnode 2 from Subnode 4",

"subcategories": [],


{"id": 00015,

"name": "Category Subnode 5 from Node 1",

"subcategories": [],


{"id": 00016,

"name": "Category Subnode 6 from Node 1",

"subcategories": [000161,000162],


{"id": 000161,

"name": "Category Subnode 1 from Subnode 6",

"subcategories": [],


{"id": 000162,

"name": "Category Subnode 2 from Subnode 6",

"subcategories": [],


{"id": 0002,

"name": "Category Node 2",

"subcategories": [],


{"id": 00013,

"name": "Category Node 3",

"subcategories": [],



Skills: HTML, Javascript, jQuery / Prototype

See more: quanto custa freelancer para desenvolver um app, kostenlose software um logos zu designen, i am a london based photographer looking for an assistant to help me out with my different projects mainly with my wedding photo, hire freelance to write an export strategy, getting new sales people to understand, freelancer desenvolver software, easy way to understand probability, easy way to understand permutations and combinations, desenvolver software freelancer, c programming easy to understand and practice online, como desenvolver um site em html 5, como desenvolver um aplicativo php para facebook developer, buyer based model in pre preparation production phase in online marketing, indesign export to word, preciso de um programador para desenvolver um software, i need an android app i would like it designed and built quero desenvolver um aplicativo sobre financas que controle gastos e et, i always try to understand your needs and often make my own suggestions before starting the project in order to reduce your tota, home based data entry clerk from us to philippines, easy-to-understand, desenvolver um software, desenvolver um software web grails, desenvolver um aplicativo, desenvolver um aplicativo para iphone, desenvolver software, desenvolver o design de um aplicativo para iphone

About the Employer:
( 5 reviews ) Americana, Brazil

Project ID: #11720049

Awarded to:


Hi, In short, you are looking for a JSON generator from and UL list. Could you send me the actual html structure of the list? Feel free to contact me via Skype: bangank36, my timezone is GMT+7. My resume website: More

$40 USD in 1 day
(197 Reviews)

10 freelancers are bidding on average $32 for this job


Hi. Your project is a piece of cake for me. I'm expert on Javascript. I will do a DOM walk then generate structured data just as required. Eduardo

$30 USD in 1 day
(25 Reviews)

Hi, I have made a crawler to extract data from a website . So this task is familiar to me

$66 USD in 2 days
(33 Reviews)

Welcome your proposal. I am a MySQL, PHP, Javascript expert. I completed many web projects in the past and I have a lot of experience in them. I have experience more 10 years in web development. Specially, I built More

$30 USD in 2 days
(39 Reviews)
$30 USD in 1 day
(14 Reviews)

Hello Sir..! I read your description I can complete your project on time and within your budget I am fully confident about your project. I will receive your best wishes. I am waiting your response thanks you so much More

$30 USD in 1 day
(11 Reviews)

A proposal has not yet been provided

$45 USD in 1 day
(7 Reviews)

This is really easy should take me around 1 hour of work (Sorry for my lacking profile I just registered)

$20 USD in 0 days
(0 Reviews)
$15 USD in 1 day
(0 Reviews)

This is my first bid for work here, i will do my best to get the job done as fast as possible, i hope you chose [login to view URL] you.

$10 USD in 1 day
(0 Reviews)