[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: jliff-example1-0.9.3.json
All Apologies for my various contradictions with myself. I have a bad habit of making statements, walking away from my code and then thinking of a way to move forward. It appears that I can override how my various subclasses write themselves to the serializer. Doing this does let me write out per the example in GitHub. It makes
deserialization slightly more work. Phil
From: xliff-omos@lists.oasis-open.org [mailto:xliff-omos@lists.oasis-open.org]
On Behalf Of Phil Ritchie I’ve played a bit more with my implementation and I’m not sure that jliff-example1-0.9.3.json can be achieved with a strongly typed language. Even with interfaces I cannot do: … “source”: [ { “id”: “c1”, “kind”: “ph” }, “AAA”, { “id”: “c1”, “kind”: “ph” } ] The closest would probably be: “source”: [ { “id”: “c1”, “kind”: “ph” }, { “text”: “AAA” }, { “id”: “c1”, “kind”: “ph” } ] Phil
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]