parsing Json where ID is an integer using gson

I want to parse the following Json file in Java. But I am not able to parse it because the tag is an integer. Please suggest a method to parse the following data:

content:
{ 
    1: "rtsp://v6.cache3.c.youtube.com/CiILENGUgZ2aWRlb3MM/0/0/0/video.3gp",
    5: "https://www.youtube.com/v/VWDc9oyBj5Q?version=3&f=videos&app=youtube_gdata",
    6: "rtsp://v8.cache7.c.youtube.com/CiILENZ2aWRlb3MM/0/0/0/video.3gp"
}

Answers


What happens if you create fields like following in the object that you try to parse it too:

@SerializedName("1") 
public String number_1;

I assume you use gson.


Need Your Help

How to split two strings and swap sliced parts in C#?

c# string split

I have an array and each index contains a string with four characters. I need to select a random point in the string and then slice stringaArray[0] and stringaArray[1] at the same point and swap th...

Ninject error on deployment

asp.net-mvc-4 deployment ninject godaddy system.reflection

When i run the site on my local machine for testing proposes it works fine but when i deploy to godaddy it displays this error:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.