Upendar Srirangam

Api For Converting Xml To Json Data

Recommended Posts

Guest Angshu

Hi,

 

Thanks for your post.

 

Could you please confirm whether you are using native or web based application in Ipad?

 

If you are using native application, I am afraid, json will not work.

 

In case you are using web-based application, you would need to provide the json data in a proper way like below:

 

http://www.fusioncharts.com/docs/?DataFormats/JSON/SingleSeries.html

 

http://www.fusioncharts.com/docs/?DataFormats/JSON/MultiSeries.html

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

I am using web based approach only. We just generate HTML content and provide that to Ipad app.

What I was asking you is is there any API/ component provided for convertinf XMLData to JSON data for Fusion Charts?

 

Hi,

 

Thanks for your post.

 

Could you please confirm whether you are using native or web based application in Ipad?

 

If you are using native application, I am afraid, json will not work.

 

In case you are using web-based application, you would need to provide the json data in a proper way like below:

 

http://www.fusioncha...ngleSeries.html

 

http://www.fusioncha...ultiSeries.html

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

Thanks for your response.

 

FusionCharts TranscodeData private function will do that.

Arguments- please see below:

 

FusionCharts.transcodeData("<chart><set value='50'/></chart>", "xml", "json")

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

Thanks for your swift response. Can you please furnish some more detailed information on this method.

If possible please provide a sample which takes xml data and converts that to Json data and render the chart.

Thanks in advance.

 

Regards,

Upendar.

Hi,

Thanks for your response.

 

FusionCharts TranscodeData private function will do that.

Arguments- please see below:

 

FusionCharts.transcodeData("<chart><set value='50'/></chart>", "xml", "json")

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

FusionCharts TranscodeData private function will only convert FusionCharts XML data to FusionCharts json data.

It would not be possible converting any kind of XML data to json data using this function.

 

Could you please confirm the kind of sample you are looking for?

 

Awaiting for your response.

 

 

 

Share this post


Link to post
Share on other sites

I want the same functionality.

I have the Fusion Chart specific XML data and need some method which converts that XML data to JSON data.

Do you C# method? or Java script method for this? Please provide whatever the sample you have with you.

 

Regards,

Upendar

Hi,

 

FusionCharts TranscodeData private function will only convert FusionCharts XML data to FusionCharts json data.

It would not be possible converting any kind of XML data to json data using this function.

 

Could you please confirm the kind of sample you are looking for?

 

Awaiting for your response.

 

 

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Please find the sample zip file attached for your reference.

 

Here, to simplify the code, we have used XML data as a string.

 

You can also use AJAX to load the XML.

 

Awaiting for your feedback.

XML to JSON Conversion.zip

Share this post


Link to post
Share on other sites

Thanks for your response.

We need a C#/Any language method for converting this method. Because we have a requirement that we need to convert Fusion Charts XML data to Fusion Charts specific JSON Data (for IPAD)

Is it possible to share that private method? If so we can embed that in class and utilize that.

 

Thanks

Upendar.

Hi,

 

Please find the sample zip file attached for your reference.

 

Here, to simplify the code, we have used XML data as a string.

 

You can also use AJAX to load the XML.

 

Awaiting for your feedback.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Please note that this is only possible in JavaScript, not in C#.

 

Thank you very much for your continued patience and patronage.

 

Hope you have a great day!

Share this post


Link to post
Share on other sites

What is the use of this function if I have XML in place and just convert before rendering the chart.

Please let us know if you can help us by providing any method which can perform this conversion and return JSOn.

 

Thanks,

Upendar.

Hi,

 

Thanks for your response.

 

Please note that this is only possible in JavaScript, not in C#.

 

Thank you very much for your continued patience and patronage.

 

Hope you have a great day!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now