Liquid Studio Documentation
XSD Editor / Tools / XSD to JSON Conversion Wizard
In This Topic
    XSD to JSON Conversion Wizard
    In This Topic

    This wizard allows an XML schema to be converted to a JSON Schema.

     

    Properties

    Input File

    The source file to be converted

    Output File

    The target file that will be created. If the file already exists it will be overwritten.

    JSON Schema version

    Determines the version of the JSON Schema standard to create

    Default Additional Properties

     Determines how the 'additionalProperties' property on the JSON schemas is set by default.

    Treat arrays as required

    Determines how an XSD Schema with minOccurs=0 and maxOccurs>1 is converted.
    Consider the schema.

    <xs:element name="Thing" minOccurs="0" maxOccurs="2"/>
    

    When 'Treat arrays as required' is checked then the 'Thing' property is 'required', so the resulting JSON looks like this

    { "Thing" : [1, 2] }
    

    or

    { "Thing" : [] }
    

    When 'Treat arrays as required' is unchecked then the 'Thing' property is not 'required', so the resulting JSON looks like this

    { "Thing" : [1, 2] }
    

    or

    { "Thing" : [] }
    

    or

    { }
    

     

     

     

    Some of the concepts in an XSD schema do not exist in a JSON Schema, so a 100% accurate mapping is not possible.