Retroper

The project to convert JSON/XML/Estructura.Tree back and forth, and resend the reshaped result to clients

JSON Format

JSON is supposed to be in the format which allows isomorphic convertion to XML. That would be

{
"name":"value",
"attributes":{"attr_name":"attr_value"},
"content":[
{"name":,}
]
}

If some additional attributes are to be sent within the payload, the above might be placed under "data": or "payload": keys.

Installation

def deps do
[
{:retroper, "~> 0.1"}
]
end

Documentation