Supprimer les doublons d'une Chaîne Json en Java?

J'ai une Chaîne Json avec des valeurs en double:

Chaîne json = "{\"Sign_In_Type\":\"Action\",\"Sign_In_Type\":\"Action\"}"; 

que correctement déclenche une exception lorsque j'essaie de créer un JSONObject:

 
try { 
JSONObject json_obj = new JSONObject(json); 
Type de chaîne = json_obj.getString("Sign_In_Type"); 
} catch (JSONException e) { 
throw new RuntimeException(e); 
} 

Erreur:

Exception in thread "main" java.lang.RuntimeException: org.json.JSONException: Double de clé "Sign_In_Type" 
au com.campanja.app.Le téléchargement.principale(Upload.java:52) 
Causés par: org.json.JSONException: Double de clé "Sign_In_Type" 
au org.json.JSONObject.putOnce(JSONObject.java:1076) 
au org.json.JSONObject.(JSONObject.java:205) 
au org.json.JSONObject.(JSONObject.java:402) 
au com.campanja.app.Le téléchargement.principale(Upload.java:49) 

Est-il une façon intelligente de retrait ou de vérification des doublons avant de me convertir à une JSONOBject?
J'ai essayé de créer:

 Set = new HashSet(Tableaux.asList(json)); 

mais qui me donne:

[{"Sign_In_Type":"Action","Sign_In_Type":"Action"}] 

Tout suggesstions bienvenue, merci!

OriginalL'auteur C.A | 2013-09-25