单项选择题

JSONObject类中的哪一个方法可以将数据转为JSON文本?()

A.toString()
B.toJSONString()
C.parseJSON()
D.convertJSONText()