I don't think your example needs to be quite so verbose.
{
'ul': {
'li': 'hello!'
}
}
I would think it would depend upon the parser.Regardless, I'd still rather write out HTML instead of JSON for markup.