Looking for some advise about encoding raw HTML to JSON.

Here as some sample XML similar to what we are using:
<id>846</id>
<name>Mike</name>
<markup>
    <div>
        <h1>testing</h1>
    </div>
</markup>

When converting this XML to JSON I would like the "markup" element and
all of it's children to be returned as a big string. For example:
{"id": 846, "name": "Mike", "markup", "<div><h1>testing</h1></div>"}

Right now it always tries to parse the children, resulting in
something similar to:
{"id": 846, "name": "Mike", "markup":{"div":{"h1":"testing"}}

Any insights?

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to