xml - xsl to remove all 'string' type quotes before converting to json output for any boolean values -


i using xsl convert xml json.

the josn boolean values showing myboolean:"true". should showing myboolean:true (without quotes around true).

how can make xsl remove 'string' type quotes before converting json output boolean values?

you can use translate() function strip out double-quote " , single quote/apostrophe ' characters our string value, translating them nothing:

translate(.,'"'','') 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -