我从淘宝接口拿到一些商品的交易数据(json格式),现在想把他保存到自己的数据库里面去,但不知道怎么保存进去,
如:
{"trades_sold_get_response":{"trades":{"trade":[{"adjust_fee":"-80.00","buyer_nick":"july林丽星","buyer_obtain_point_fee":0,"buyer_rate":true,"cod_fee":"0.00","cod_status":"NEW_CREATED","consign_time":"2012-05-02 19:33:58","orders":{"order":[{"adjust_fee":"-80.00","buyer_rate":true,"discount_fee":"0.00","num":8,"num_iid":1188442141,"oid":133089859675521]},"total_results":500}}怎么把里面的字段都保存到数据库里啊?
如:
{"trades_sold_get_response":{"trades":{"trade":[{"adjust_fee":"-80.00","buyer_nick":"july林丽星","buyer_obtain_point_fee":0,"buyer_rate":true,"cod_fee":"0.00","cod_status":"NEW_CREATED","consign_time":"2012-05-02 19:33:58","orders":{"order":[{"adjust_fee":"-80.00","buyer_rate":true,"discount_fee":"0.00","num":8,"num_iid":1188442141,"oid":133089859675521]},"total_results":500}}怎么把里面的字段都保存到数据库里啊?
解决方案 »
- myeclipse与tomcat的配置问题,求大神解决,跪谢~!!!
- 请各位webservices高手帮帮忙解决问题
- 急!!!!求助!!
- 谁用asp调用过ocx控件?
- 各位ggjj看看,帮帮我
- 关于schtasks
- 请大家帮忙给点复习java基础,3大框架的复习资料。
- 高分问题!TOMCAT可以实现HTTP的长连接吗?或者是TCP的长连接?
- lomboz中的tomcat正常启动,但运行jsp页面显示404错误?
- 有个J2EE项目我想选择LINUX平台,最近在尝试阶段大家给点意见好么?
- 我tomcat和eclipse helios已经装好了 但是还是无法运行JSP文件
- Spring2.5换成Spring3.0出现Cannot cache an unknown entity异常
如何解析json 我找到一些都是解析不全都。
Entity[] entity = (AnimalDefectsLike[]) JSONArray.toArray(jsonArray, Entity.class);
亲 我怎么用你的报错啊
Exception in thread "main" net.sf.json.JSONException: java.lang.NoSuchMethodException: javax.swing.text.html.parser.Entity.<init>()