We have the below XML

<?xml version="1.0" encoding="UTF-8" ?>
<a>1</a>
<b>
<b>1</b>
<c>test</c>
<d>json</d>
<e>1</e>
<e>2</e>
<e>4</e>
</b>

What will be the corresponding JSON ?

 Posted by Rajnilari2015 on 3/21/2016 | Category: XML Interview questions | Views: 2558 | Points: 40
Select from following answers:
  1. { "a" : 1, "b" : { "b" : 1, "c" : "test", "d" : "json", "e" : [1, 2, 4] } }
  2. { "a" : 1, "b" : { "b" : 1, "c" : "test", "d" : "json", "e" : [1, 2,3, 4] } }
  3. { "a" : 1, "b" : { "b" : 1, "c" : "test", "d" : "json", "e" : [1, 4,2] } }
  4. { "a" : 1, "b" : { "b" : 1, "c" : "json", "d" : "test", "e" : [1, 2, 4] } }
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response