dynamic extraction of target text from json data