Question: How to parse maps of objects
marcuskaufmann opened this issue · 0 comments
Hi,
I have an property structure where a part of the property key is used to aggregate properties to one object. That key is user defined and could be any string as long the resulting property key is valid. In the example below there are two objects defined by the keys "Chrome_1024x768" and "Chrome_1500x1000". The properties of these object (name, browser and browserResolution) are defined and not customizable. My current parsing solution returns a map of objects (lets say Map<String, BrowserProfile>).
Question #1: Is it possible to parse the structure below with Owner so I get the same result? How would it look like?
Question #2: If it isn't possible: Do you have any advise how I should structure my properties in order to parse it with Owner?
Thanks in advance,
Marcus
A local Chrome with a small window size
browserprofile.Chrome_1024x768.name = Chrome 1024x768
browserprofile.Chrome_1024x768.browser = chrome
browserprofile.Chrome_1024x768.browserResolution = 1024x768
Local Chrome but with larger window size
browserprofile.Chrome_1500x1000.name = Chrome 1500x1000
browserprofile.Chrome_1500x1000.browser = chrome
browserprofile.Chrome_1500x1000.browserResolution = 1500x1000