Questions tagged [jsonix]

Jsonix is a JavaScript library which provides JSON-XML interfaces that allows to marshalling and unmarshalling JSON to/from XML.

Jsonix is a JavaScript library which provides JSON-XML interfaces that allows to marshalling and unmarshalling JSON to/from XML.

Features:

  • Jsonix (JSON interfaces for XML) allows to convert between XML and JSON structures.
  • Jsonix can parse XML into JSON (this process is called unmarshalling) or serialize JSON in XML form (this is called marshalling).
  • These conversions are based on simple XML/JSON mappings which can be written manually or generated from an XML-Schema.

Advantages:

  • Strongly structured.
  • Type-safe.
  • (Optionally) XML Schema-driven.

The project Home Page: https://github.com/highsource/jsonix/

39 questions
0
votes
1 answer

jsonix: converting json->xml: date formats ignored

In my xsd-file I offer different date formats for the type appointment:
saab
  • 129
  • 1
  • 3
  • 16
0
votes
1 answer

jsonix: Element [] is not known in this context, could not determine its type

Following instructions on using jsonix-schema-compiler I successfully got an mapping object for a xsd-file; the very summarized content of which is: var IdentPerson_Module_Factory = function () { var IdentPerson = { name: 'IdentPerson', …
saab
  • 129
  • 1
  • 3
  • 16
0
votes
1 answer

TypeError: Jsonix.Context is not a function

I successfully got an schema object created by jsonix. Now I want to convert json strings to xml. This is my code: var Jsonix= require('jsonix'); var context= new Jsonix.Context([myschemaobj]); here I get the error that Jsonix.Context is not a…
saab
  • 129
  • 1
  • 3
  • 16
0
votes
1 answer

Unmarshaling SOS DescribeSensor response via JSONIX yields incomplete object

I am attempting to use jsonix to unmarshal xml response from an SOS DescribeSensor request. In the broader scope I am going to be using jsonix to unmarshal all responses from SOS, particularly 2.0. I noticed that the response uses SML or SensorML…
0
votes
1 answer

jsonix-schema-compiler Maven usage

I have tried to use jsonix-schema-compiler according to https://github.com/highsource/jsonix-schema-compiler/wiki/Maven-Usage but it doesn't work I have even tried to specify other arguments as follows: test-json
Ali Abdel-Aziz
  • 275
  • 1
  • 4
  • 13
0
votes
1 answer

Jsonix-schema-compiler cannot convert .xsd file to JSON Object

I converted a few .xsd files to a JSON Object with the jsonix-schema-compiler, but there is one .xsd with qualified namespaces. The following .xsd cannot be converted - there is no error message, but also no output is generated. I tried to switch…
Mario Murrent
  • 712
  • 5
  • 24
0
votes
1 answer

How to make XML binding in GWT or JavaScript?

My goal is to make XML binding in javascript. Although this is uncommon, I need this for a Thunderbird plugin. I wish to make in javascript (XPCOM has no longer java support). So this isn't for serializing and using JSON. I really need XML…
Dom
  • 27
  • 6
0
votes
1 answer

How to make JSONIX tolerate extra XML elements on deserialization?

I'm using JSONIX 2.0.12 and it's awesome. I have a large XML file for which I only care to deserialize a subset of elements to JSON. When I leave some elements out of my mapping file, jsonix complains with an unexpected element error when…
0
votes
1 answer

Java ant build jsonix

how do i build the following using ant? http://sourceforge.net/p/jsonix/code/HEAD/tree/trunk/samples/ bash-3.2$ ant -buildfile project-build.xml Buildfile:…
chuckfinley
  • 2,577
  • 10
  • 32
  • 42
1 2
3