1 package org.json.simple.parser;
7 * Container factory for creating containers for JSON object and JSON array.
9 * @see org.json.simple.parser.JSONParser#parse(java.io.Reader,
12 * @author FangYidong<fangyidong@yahoo.com.cn>
14 public interface ContainerFactory
17 * @return A Map instance to store JSON object, or null if you want to use
18 * org.json.simple.JSONObject.
20 Map createObjectContainer();
23 * @return A List instance to store JSON array, or null if you want to use
24 * org.json.simple.JSONArray.
26 List creatArrayContainer();