java代码如何从下面字符串中取出想要的字符串

{"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里的),其实就是从这串字符中将这些字符串取出来,我是新手,还搞不清楚,希望大神帮忙,要代码,谢谢。

第1个回答  2015-09-21
你上面是json字符串啊,你是怎么得到的,把他转换成map不就直接提取出来追问

你好,我是新手,这些是json文件,我已经读出来了,现在就是取这些字符串的时候遇到了问题,你说的转成map直接提取是什么意思?谢谢

本回答被提问者和网友采纳
相似回答