buglabs/node-xml2json — Issue #7: xml element with attributes and body becomes json with key '$t'
Author: martennilsson
Created: 2011-10-18 07:19:04+00:00
State: open

I'm trying to parse the following element:
@<a class=" " href="http://twitter.com/Skinz06">Skinz06</a> the fact its called a <em>cake</em> kinda gives it away.......also when fresh the softness makes it a <em>cake</em> for me! Love them

and it becomes:

content:
{ type: 'html',
'$t': '@Skinz06the fact its called acakekinda gives it away.......also when fresh the softness makes it acakefor me! Love them' },

The problem is that the $t key is not valid when i try to insert it into mongodb:
"'key $t must not start with \'$\''"

Could it be that $t is not a valid key in json?
Can i configure the way node-xml2json contructs the key and supply something else for a key name, for example 'body'?

Thankful for any help