jsonix
jsonix copied to clipboard
How to simplify dc:Elements.
trafficstars
@highsource I tried the new version (2.1.2) of jsonix with simplified mappings, all unmarshaled objects are easy to read.
It is posible to also simplify the dcElement in a csw:Record ? Instead an array of attributtes maybe an object with atributtes ?
Related issue #56
Proposed:
"dcElement": {
"dc:identifier": "0173e0d7-6ea9-4407-b846-f29d6bfa9903",
"dc:title":"Aerial Photos",
"dc:anotherAttr": "xxxxx",
....................
}
Actual:
{
"csw:Record": {
"TYPE_NAME": "CSW_2_0_2.RecordType",
"dcElement": [
{
"dc:identifier": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"0173e0d7-6ea9-4407-b846-f29d6bfa9903"
]
}
},
{
"dc:title": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"Aerial Photos"
]
}
},
{
"dc:type": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"dataset"
]
}
},
{
"dc:subject": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"Orthoimagery"
]
}
},
{
"dct:references": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"scheme": "None",
"content": [
"http://www.ypaat.gr"
]
}
},
{
"dc:date": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"2009-10-09"
]
}
},
{
"dc:rights": {
"TYPE_NAME": "DC_1_1.SimpleLiteral",
"content": [
"otherRestrictions"
]
}
}
],
"boundingBox": [
{
"ows:BoundingBox": {
"TYPE_NAME": "OWS_1_0_0.BoundingBoxType",
"crs": "urn:x-ogc:def:crs:EPSG:6.11:4326",
"dimensions": 2,
"lowerCorner": [
38,
20
],
"upperCorner": [
40,
24
]
}
}
]
}
}
Thanks in advance JM
Cool idea.