java代码如何从下面字符串中取出想要的字符串
{"chain_name":"辛醇产业链","product":{"product_name":"异辛醇","introduction_title":"辛醇介绍","pr...
{"chain_name":"辛醇产业链","product":{"product_name":"异辛醇","introduction_title":"辛醇介绍","product_introduction":"","manufacturer_name":[]},"upstream_products":[{"product_name":"丙烯","introduction_title":"","product_introduction":"","manufacturer_name":[]}],"downstream_products":[{"product_name":"油酸异辛酯","introduction_title":"","product_introduction":"","manufacturer_name":[]},{"product_name":"棕榈酸异辛酯","introduction_title":"","product_introduction":"","manufacturer_name":[]}]}
文件如上,比较长,是一行,现在想 将string key = 异辛醇(product里的),string from = 丙烯(upstream_products里的),string to = 油酸异辛酯,棕榈酸异辛酯(downstream_products里的),其实就是从这串字符中将这些字符串取出来,我是新手,还搞不清楚,希望大神帮忙,要代码,谢谢。 展开
文件如上,比较长,是一行,现在想 将string key = 异辛醇(product里的),string from = 丙烯(upstream_products里的),string to = 油酸异辛酯,棕榈酸异辛酯(downstream_products里的),其实就是从这串字符中将这些字符串取出来,我是新手,还搞不清楚,希望大神帮忙,要代码,谢谢。 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询