Saxon.Api
Class JsonBuilder
- 
               public class JsonBuilder
A JsonBuilder allows XDM values (typically maps and arrays) to be constructed by parsing JSON input
| Property Summary | |
|---|---|
| bool | Liberal 
                        Specify whether parsing is to be strict or liberal. The default is strict, in which
                        case input
                        must conform strictly to the JSON specification. If the  | 
| Method Summary | |
|---|---|
| XdmValue | ParseJson (TextReader jsonReader) 
                        Parse a JSON document supplied using a  | 
| XdmValue | parseJson (TextReader jsonReader) 
                        Obsolete synonym of  | 
| XdmValue | ParseJson (string json) 
                        Parse a JSON document supplied as a  | 
| XdmValue | parseJson (string json) 
                        Obsolete synonym of  | 
Property Detail
Liberal
                  Specify whether parsing is to be strict or liberal. The default is strict, in which
                  case input
                  must conform strictly to the JSON specification. If the Liberal option is set,
                  certain departures from JSON syntax are permitted (and ignored), for example an extra
                  comma
                  is allowed after the entries in an array or object.
                  
Method Detail
ParseJson
throws
SaxonApiException
parseJson
throws
SaxonApiException
                     Obsolete synonym of ParseJson.
                     
Parameters:
jsonReader - Delivers the JSON input textReturns:
XdmMap or XdmArray containing the parsed representation of the JSON
                     input text. If the JSON comprises a single token, the returned value may be an XdmAtomicValue
                     containing a string, number, or boolean; or an empty sequence representing JSON null.Throws:
ParseJson
throws
SaxonApiException
                     Parse a JSON document supplied as a string
                     
Parameters:
json - Contains the JSON input textReturns:
XdmMap or XdmArray containing the parsed representation of the JSON
                     input text. If the JSON comprises a single token, the returned value may be an XdmAtomicValue
                     containing a string, number, or boolean; or an empty sequence representing JSON null.Throws:
parseJson
throws
SaxonApiException
                     Obsolete synonym of ParseJson
                     
Parameters:
json - Contains the JSON input textReturns:
XdmMap or XdmArray containing the parsed representation of the JSON
                     input text. If the JSON comprises a single token, the returned value may be an XdmAtomicValue
                     containing a string, number, or boolean; or an empty sequence representing JSON null.Throws:
Parse a JSON document supplied using a
TextReaderParameters:
jsonReader- Delivers the JSON input textReturns:
XdmMaporXdmArraycontaining the parsed representation of the JSON input text. If the JSON comprises a single token, the returned value may be anXdmAtomicValuecontaining a string, number, or boolean; or an empty sequence representing JSON null.Throws: