求解?在超级商城上采集了下面段代码,我怎么把颜色和尺寸取出来??

问题描述

这是代码:[{"dataRows":[{"name":"顏色","specValue":[{"name":"九分小破"},{"name":"黃扣九分"},{"name":"爆款九分"},{"name":"純藍"}]},{"name":"尺寸","specValue":[{"name":"27"},{"name":"28"},{"name":"29"},{"name":"30"},{"name":"31"},{"name":"32"},{"name":"33"},{"name":"34"}]}]},{"九分小破/27":{"DimensionDescription":"九分小破/27","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/28":{"DimensionDescription":"九分小破/28","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/29":{"DimensionDescription":"九分小破/29","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/30":{"DimensionDescription":"九分小破/30","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/31":{"DimensionDescription":"九分小破/31","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/32":{"DimensionDescription":"九分小破/32","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/33":{"DimensionDescription":"九分小破/33","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"九分小破/34":{"DimensionDescription":"九分小破/34","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/27":{"DimensionDescription":"黃扣九分/27","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/28":{"DimensionDescription":"黃扣九分/28","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/29":{"DimensionDescription":"黃扣九分/29","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/30":{"DimensionDescription":"黃扣九分/30","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/31":{"DimensionDescription":"黃扣九分/31","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/32":{"DimensionDescription":"黃扣九分/32","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/33":{"DimensionDescription":"黃扣九分/33","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"黃扣九分/34":{"DimensionDescription":"黃扣九分/34","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/27":{"DimensionDescription":"爆款九分/27","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/28":{"DimensionDescription":"爆款九分/28","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/29":{"DimensionDescription":"爆款九分/29","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/30":{"DimensionDescription":"爆款九分/30","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/31":{"DimensionDescription":"爆款九分/31","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/32":{"DimensionDescription":"爆款九分/32","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/33":{"DimensionDescription":"爆款九分/33","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"爆款九分/34":{"DimensionDescription":"爆款九分/34","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/27":{"DimensionDescription":"純藍/27","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/28":{"DimensionDescription":"純藍/28","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/29":{"DimensionDescription":"純藍/29","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/30":{"DimensionDescription":"純藍/30","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/31":{"DimensionDescription":"純藍/31","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/32":{"DimensionDescription":"純藍/32","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/33":{"DimensionDescription":"純藍/33","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""},"純藍/34":{"DimensionDescription":"純藍/34","specCurrStock":"999","specSaftyStock":"1","specCustPid":"","specBarCode":""}}]怎么把颜色和尺寸取出来??

解决方案

解决方案二:
sql和程序都可以,要取出来像这样颜色:九分小破黃扣九分爆款九分純藍尺寸:2728293031323334,请问怎么做?
解决方案三:
就是个json反序列化一下得到数组然后随便操作
解决方案四:
引用2楼liukai9811的回复:

就是个json反序列化一下得到数组然后随便操作

请问能给段代码来参考嘛?
解决方案五:
找下的用法
解决方案六:
Newtonsoft.Json.dll好用
解决方案七:
引用5楼binsweet的回复:

Newtonsoft.Json.dll好用

嗯嗯

时间: 2024-10-30 09:06:06

求解?在超级商城上采集了下面段代码,我怎么把颜色和尺寸取出来??的相关文章

c++数据结构堆栈加减乘除运算器 我从教科书上copy了一段代码但是输入后直接停止工作求解

问题描述 c++数据结构堆栈加减乘除运算器 我从教科书上copy了一段代码但是输入后直接停止工作求解 我输入的是自带测试用例运算式 (((60+40)/50*(16-4)) #include #include #include #include #include using namespace std; double read_and_evaluate(istream& ins); void evaluate_stack_tops(stack& numbers,stack& ope

源代码-按书上写了一段代码java异常处理,不知道为什么不能运行,求大神指教

问题描述 按书上写了一段代码java异常处理,不知道为什么不能运行,求大神指教 源代码如下: package com.Sixping.Ncre; import java.io.*; public class ExceptionCatch { public static void main(String[] args) { try { FileNotFoundException fis = new FileNotFoundException("text"); System.out.pri

我按照书上写了一段代码为什么报错呢?如何解决?

问题描述 错误1程序"d:用户目录我的文档VisualStudio2013ProjectsConsoleApplication1ConsoleApplication1objDebugConsoleApplication1.exe"不包含适合于入口点的静态"Main"方法D:用户目录我的文档VisualStudio2013ProjectsConsoleApplication1ConsoleApplication1CSCConsoleApplication1 解决方案

php采集天气预报2段代码

js调用天气预报方法 中国气象台  代码如下 复制代码 <iframe src="http://m.weather.com.cn/m/pn12/weather.htm " width="245" height="110"   marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder=&q

求解在windows azure上固定实例内部IP(DIP)方法?

问题描述 求解在windows azure上固定实例内部IP(DIP)方法? 求解,在windows azure上进行固定实例内部IP(DIP)的具体方法和流程 解决方案 Hi, 请阅读这篇文章:https://msdn.microsoft.com/zh-cn/library/azure/dn630228.aspx,文章详细的如何列出了关于操作DIP,大概分成以下几步: 1)验证特定的IP地址是否可用 2)在创建VM是指定静态内部地址,或者为已创建好的VM指定静态内部地址 3)如何删除静态内部地

江城自助餐厅流行窝窝商城上开网店 生意火爆

武汉号称"九省通衢",是我国市民气最浓厚的城市之一,武汉人爱美食也是全国闻名.近几年武汉餐饮http://www.aliyun.com/zixun/aggregation/6288.html">行业发展迅猛,除了武汉鸭脖.热干面等传统小吃外,自助餐尤其是一些高端自助餐,也深受武汉市民的喜爱.在网上搜罗最新美食.预订下单,然后约朋友到店海吃,也成为武汉市民日常生活的必备选项. 为了让消费者便捷地网购"吃喝玩乐",像金鲨国际美食百汇.凯威食享家等武汉本地

方法-c#2010里怎么设置一段代码的属性??新人求解

问题描述 c#2010里怎么设置一段代码的属性??新人求解 这是我在网上找的用C写坦克大站的一段代码,教程视频里作者在 p1Tank上按了不知道什么键然后弹出一个窗口确认后就出现了下面这几行代码,我却找不到方法. private P1Tank p1Tank; public P1Tank P1Tank { get { return p1Tank; } set { p1Tank = value; } } 解决方案 这个是封装 pubice p1Tank p1tank: 选中后面的p1tank然后右键

extjs java-请问使用extjs进行文件上传,extjs前台代码和java后台代码应该怎么写

问题描述 请问使用extjs进行文件上传,extjs前台代码和java后台代码应该怎么写 请问使用extjs进行文件上传,extjs前台代码和java后台代码应该怎么写 解决方案 代码复制一下.http://www.cnblogs.com/hannover/archive/2010/12/02/1894820.htmlhttp://blog.itpub.net/29870867/viewspace-1280697/ 解决方案二: extjs的上传是封装好的,你只需要在后台servlet中接收传过

使用css在不同页面上使用同样的导航代码

css|导航|页面 查了相关的资料,在这个过程中发现,使用flash实现这样的效果需要通过后台,这个因为我不太了解,暂且不表,说说最近在学的css 如何用css实现在不同页面上使用相同的导航代码 原理:通过为每个页面的body定义一个id根据css的继承特性("好像有这个说法吧,不好意思记得不是很清楚")利用#body #nav a的形式实现在不同页面中与页面相对应的链接的颜色与其它链接的颜色不同 下面看看我的代码: 常规的链接可以这样定义#topnav a:hover,#topnav