Get a value from a Map and convert to the specified type @param map Source map @param key The key @param Target type @return The converted value
(Map<String, Object> map, String key)
| 278 | * @return The converted value |
| 279 | */ |
| 280 | @SuppressWarnings("unchecked") |
| 281 | public static <L extends List<Object>> L getJSONArray(Map<String, Object> map, String key) { |
| 282 | Object obj = get(map, key); |
| 283 | return (L) obj; |
| 284 | } |
| 285 | |
| 286 | /** |
| 287 | * Get a value from a Map and convert to the specified type |