如何使用JMeter中的regex从json中解析出参数名称?

时间:2014-07-01 17:48:47

标签: regex json jmeter

我在长篇普通json中有几个片段,就像这篇片段(2个片段):

"document.NAME1":{"name":"document.NAME1","result":[{"name":"**Patent**","count":54},{"name":"**Journal**","count":6}], ...},
"document.NAME2":{"name":"document.NAME2","result":[{"name":"**2013-12-01**","count":18},{"name":"**2012-12-09**","count":3},{"name":"**2012-12-06**","count":2}]

在这种情况下,我应该如何在JMeter中编写正则表达式,以获取专利期刊,...等值,用于NAME1和 2013-12-01 2012-12-09 ,...来自这个json的NAME2?