0

I want to know how can I convert JSON string to XML string in ASP.NET 1.1

I can not use third party library for some restriction.

Any suggestion would be a big help.

6
  • 3
    ASP.NET 1.1? you should migrate to a newer framework! Commented Nov 6, 2012 at 11:59
  • 1
    @Jordi . I wish that is in my hand.. Commented Nov 6, 2012 at 12:03
  • 1
    I hope you will be able to upgrade in the future. My sincere support Commented Nov 6, 2012 at 13:16
  • But currently I am stuck in this conversion stuff..and its killing.. Commented Nov 6, 2012 at 13:18
  • Sorry but can I just ask, why on earth would you be prevented from upgrading? Is there a technical reason why this would be necessary? Commented Nov 7, 2012 at 4:56

1 Answer 1

4

You have to deserialize this JSON into an object and then, serialize this object again in XML. I think this is a simple approach.

Sign up to request clarification or add additional context in comments.

5 Comments

Whatever way I am finding to convert Json to object are for framework 3.5 and above..Can you suggest for 1.1, if any
I'm afraid the problem is being in asp.net 1.1, I've found this other question here that ask for using JSON in version 1.1 and they encourage to upgrade the framework, but it seems this is not in your hands. What you can always do, and it's not a good idea, is to manually parse the JSON string and build a translated XML Object. It's not a good idea and makes me cry! sorry :(
you can always show that to your CTO: cdn.memegenerator.net/instances/400x/29701086.jpg :)
Cant we serialize the json object to xml in Jquery???That will be framework independent..
I've fount this question that talks about XML/JSON conversion in jQuery, maybe it works for you! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.