praj17godbole
5th February 2014, 11:49
Is there any function available for URL encoding?

bhushanchanda
5th February 2014, 12:30
Hi,

Try this:-

string result(100)

result = curl.escape.encode$ ("http://www.google.com")

Include #include <bic_curl> in your script.

I guess this is what you are looking for.

praj17godbole
6th February 2014, 04:35
yes. this function worked..Thank u..

praj17godbole
6th February 2014, 04:39
Also, is there any functionality available in LN to handle json.. as in to convert xml to json..

bhushanchanda
6th February 2014, 05:32
Hi,

No, there are no direct functions or libraries in LN to do that, but off-course you can build your own utility to convert XML to Json. Like, you can develop a Java utility and can integrate it with LN. There are a few open-source libraries to do it.

I found a few posts.:-

Link 1 (http://stackoverflow.com/questions/16938958/convert-xml-to-json-in-java)

Link 2 (http://json.org/java/)

Link 3 (http://answers.oreilly.com/topic/278-how-to-convert-xml-to-json-in-java/)

Hope it helps.