public static Map<String,Object> parseJson(String jsonString) throws JoseException
{
try
{
JSONParser parser = new JSONParser();
return (DupeKeyDisallowingLinkedHashMap)parser.parse(jsonString, CONTAINER_FACTORY);
}
catch (ParseException | IllegalArgumentException e)
{
throw new JoseException("Parsing error: " + e, e);
}