src/main/java/com/github/wnameless/json/base/JsonValueUtils.java
public static Map<String, Object> toMap(JsonObjectBase<?> jsonObject) {
    Map<String, Object> map = new LinkedHashMap<>();
    Iterator<String> names = jsonObject.names();
    while (names.hasNext()) {
      String name = names.next();
      JsonValueBase<?> val = jsonObject.get(name);
      map.put(name, toObject(val));
    }
    return map;
  }
/**
   * Creates a {@link Map} by given {@link JsonObjectBase}.
   * 
   * @param jsonObject
   *          a {@link JsonObjectBase}
   * @return a {@link Map}
   */
Creates a  Map by given  JsonObjectBase.

@param jsonObject
a  JsonObjectBase
@return a  Map
Creates a Map by given JsonObjectBase . @param jsonObject a JsonObjectBase @return a Map
public static Map<String, Object> toMap(JsonObjectBase<?> jsonObject) {
    Map<String, Object> map = new LinkedHashMap<>();
    Iterator<String> names = jsonObject.names();
    while (names.hasNext()) {
      String name = names.next();
      JsonValueBase<?> val = jsonObject.get(name);
      map.put(name, toObject(val));
    }
    return map;
  }
public static Map < String , Object > toMap ( JsonObjectBase < ? > jsonObject ) { Map < String , Object > map = new LinkedHashMap < > ( ) ; Iterator < String > names = jsonObject . names ( ) ; while ( names . hasNext ( ) ) { String name = names . next ( ) ; JsonValueBase < ? > val = jsonObject . get ( name ) ; map . put ( name , toObject ( val ) ) ; } return map ; }
Creates a {@link Map} by given {@link JsonObjectBase}.
Creates a { @link Map } by given { @link JsonObjectBase } .