387 | | = JSON layout |
388 | | This section discusses how domains and profiles are looking in JSON. JSON is the communication format, java instances of Domain, Profile and Bid can easily be converted back and forth to JSON using the jackson objectmapper (see the test and example codes) |
389 | | |
390 | | == Create a domain |
391 | | |
392 | | |
393 | | == Bids == |
394 | | A Bid is a map with the issue names as keys (strings) and the values being an element from the valueset as in the domain description. |
395 | | |
396 | | A bid typically looks like |
397 | | {{{ |
398 | | { "salary":"2000", "fte":"0.8", "work from home","0.6" ...} |
399 | | }}} |
400 | | |
401 | | Notice that in this example, issues like fte are discrete (possible values are enumerated). Therefore the issue value is double quoted. If the issue were numeric, we would write the issue value without quotes. |