java - Searching a key which is period separated using Boon api -
i'm using boon api parsing json string. in json string 1 of key separated period example-(com.stack.demo). now, problem boon considers period , separates key. in short i'm trying lookup string in xpath fashion. in xpath have delimeter '[]' in can place period separated string , xpath (json path) searches string correctly. want accomplish same through boon, ideas...refer code below -
map<string, object> rickjsonlist1 = (map<string, object>) boon.fromjson(input); system.out.println(boon.atindex(rickjsonlist1, "eventheader.com.schema.header")); the json below -
{"eventheader" : {"com.schema.header": "test"}} i need value "test"...
have tried bracket-notation?
?['eventheader']['com.schema.header'] java json jsonpath
No comments:
Post a Comment