public class Json extends Object
| Constructor and Description |
|---|
Json() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
fromJson(String json)
Parse the JSON string as a javax.script.Bindings instance.
|
static Object |
fromJson(String json,
boolean withBigNumbers,
boolean withTokens) |
static String |
getParserName() |
static String |
makeStructureTypes(manifold.api.host.IManifoldHost host,
String nameForStructure,
Bindings bindings,
AbstractJsonTypeManifold tm,
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(manifold.api.host.IManifoldHost host,
String name,
manifold.api.fs.IFile source,
JsonSchemaType parent,
Object jsonObj) |
static IJsonType |
transformJsonObject(manifold.api.host.IManifoldHost host,
String name,
JsonSchemaType parent,
Object jsonObj) |
public static String getParserName()
public static void setParserName(String fqn)
public static Object fromJson(String json)
json - A Standard JSON formatted stringpublic static String makeStructureTypes(manifold.api.host.IManifoldHost host, String nameForStructure, Bindings bindings, AbstractJsonTypeManifold tm, boolean mutable)
public static IJsonType transformJsonObject(manifold.api.host.IManifoldHost host, String name, JsonSchemaType parent, Object jsonObj)
public static IJsonType transformJsonObject(manifold.api.host.IManifoldHost host, String name, manifold.api.fs.IFile source, JsonSchemaType parent, Object jsonObj)
Copyright © 2019. All rights reserved.