Jsonix.Model.AnyAttributePropertyInfo.marshal.writeAttribute(..) fails as localPart is an empty string that resolve to null in var localPart = name.localPart || name.lp || null (and the same again for prefix later in the same method).
I can use the existing support for namespace prefixes and a mapping of "http://a-dynamic-default-namespace" : "" (where the dynamic value can be passed as a parameter from my code invoking the marshaller) however it'd be nicer (for me) to be able to use other attributes where I currently setup other non-default namespaces and other attributes.
I guess this issue is more of a request and your thoughts are invited.
Hi,
I see related issues about default namespaces:
Ideally I'd like to be able to provide the default namespace as an other attribute.
Given the JSON
Jsonix.Model.AnyAttributePropertyInfo.marshal.writeAttribute(..)
fails aslocalPart
is an empty string that resolve tonull
invar localPart = name.localPart || name.lp || null
(and the same again forprefix
later in the same method).The
name
object is:The
value
is:I can use the existing support for namespace prefixes and a mapping of
"http://a-dynamic-default-namespace" : ""
(where the dynamic value can be passed as a parameter from my code invoking the marshaller) however it'd be nicer (for me) to be able to use other attributes where I currently setup other non-default namespaces and other attributes.I guess this issue is more of a request and your thoughts are invited.
Thank-you.
Mike