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.
我有以下jsonarray:
{ “_id”:“值”,“数据”:“值”,“数组”:[{“x”:“值”,“y”:“值”},{“x”:“值”,“ y" : "值" }] }
如何将其转换为 byte[] 数组?
public byte[] objectToBytArray( Object ob ){ return ((ob.toString()).getBytes()); }
在此处将您的 JSONArray 作为对象传递。