public class Json extends Object
| Constructor and Description |
|---|
Json() |
| Modifier and Type | Method and Description |
|---|---|
static Bindings |
fromJson(String json)
Parse the JSON string as a javax.script.Bindings instance.
|
static Bindings |
fromJson(String json,
boolean withBigNumbers,
boolean withTokens) |
static String |
getParserName() |
static String |
makeStructureTypes(IManifoldHost host,
String nameForStructure,
Bindings bindings,
boolean mutable)
Makes a tree of structure types reflecting the Bindings.
|
static IJsonType |
mergeTypes(IJsonType type1,
IJsonType type2) |
static IJsonType |
mergeTypesNoUnion(IJsonType type1,
IJsonType type2) |
static void |
setParserName(String fqn) |
static IJsonType |
transformJsonObject(IManifoldHost host,
String name,
JsonSchemaType parent,
Object jsonObj) |
static IJsonType |
transformJsonObject(IManifoldHost host,
String name,
URL source,
JsonSchemaType parent,
Object jsonObj) |
public static String getParserName()
public static void setParserName(String fqn)
public static Bindings fromJson(String json)
json - A Standard JSON formatted stringpublic static String makeStructureTypes(IManifoldHost host, String nameForStructure, Bindings bindings, boolean mutable)
public static IJsonType transformJsonObject(IManifoldHost host, String name, JsonSchemaType parent, Object jsonObj)
public static IJsonType transformJsonObject(IManifoldHost host, String name, URL source, JsonSchemaType parent, Object jsonObj)
Copyright © 2018. All rights reserved.