fr.paris.lutece.plugins.directory.utils
Class JSONUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.utils.JSONUtils

public final class JSONUtils
extends java.lang.Object

JSONUtils


Method Summary
static java.util.Map<java.lang.String,java.lang.String> getUserInfos(java.lang.String strJSON)
          Get the user infos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserInfos

public static java.util.Map<java.lang.String,java.lang.String> getUserInfos(java.lang.String strJSON)
Get the user infos.
The json must be written with the following format :

{ "user-attributes": [
{ "user-attribute-key": "user.name.family", "user-attribute-value": "FAMILYNAME" },
{ "user-attribute-key": "user.home-info.online.email", "user-attribute-value": "EMAIL@EMAIL.EMAIL"}
] }

Parameters:
strJSON - the json
Returns:
the user attributes


Copyright © 2011 Mairie de Paris. All Rights Reserved.