1.Json串(注意{}外面还有双引号)
"{\"SeatBedID\":219,\"WorkGroupID\":2}"
直接传String(用Gson解析的类对象):DataType.String
alibaba.fastjson(注解需要是@JSONField(name = “Preference”)): JSON.toJSONString(bean);-------将类对象转变成Json串
google.gson(注解需要是@SerializedName(“Preference”)): new Gson().toJson(bean);-------将类对象转变成Json串
2.类序列化的对象
{"seatBedID":219,"workGroupID":3}
传一个类对象(需要实现Serialize接口):DataType.JSON_OBJECT