Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不想痛苦地创建一个包含 id、name 等字段的类。是否有一个通用的 java 类可以用来代替使用响应?IE。将其提取为键值对?
不,java 没有用于 facebook 的类,但是您可以解析对 JSONObject 类的响应,然后您可以使用键值非常轻松地读取它。