| Package | Description |
|---|---|
| sk.antons.json | |
| sk.antons.json.impl | |
| sk.antons.json.literal | |
| sk.antons.json.literal.impl | |
| sk.antons.json.match | |
| sk.antons.json.parse |
| Modifier and Type | Interface and Description |
|---|---|
interface |
JsonArray
Json array instance.
|
interface |
JsonObject
Json object.
|
| Modifier and Type | Method and Description |
|---|---|
JsonValue |
JsonValue.findFirst(PathMatcher matcher)
Find first json value with defined path
|
JsonValue |
JsonArray.first()
Reads first element of json array.
|
JsonValue |
JsonObject.first()
Returns value of first attribute.
|
JsonValue |
JsonObject.first(String name)
Value of first attribute with specidied name
|
JsonValue |
JsonArray.get(int index)
Reads n'th item from json array.
|
JsonValue |
JsonArray.last()
Reads last element of json array.
|
JsonValue |
JsonObject.last()
Returns value of last attribute.
|
JsonValue |
JsonValue.parent()
Parent of this value in json structure
|
JsonValue |
JsonArray.remove(int index)
Removes n'th element from json array.
|
JsonValue |
JsonAttribute.value()
Value of json attribute.
|
| Modifier and Type | Method and Description |
|---|---|
List<JsonValue> |
JsonObject.all(String name)
Values of all attributes with specidied name
|
List<JsonValue> |
JsonValue.findAll(PathMatcher matcher)
Find all json values with defined path
|
List<JsonValue> |
JsonArray.toList()
Converts this instance to regulat list of values.
|
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
JsonArray.add(JsonValue value)
Adds new element to json array.
|
JsonArray |
JsonArray.add(JsonValue value,
int index)
Adds new element to json array at specified position.
|
JsonObject |
JsonObject.add(String name,
JsonValue value)
Adds attribute ti this json object at last position.
|
JsonObject |
JsonObject.add(String name,
JsonValue value,
int index)
Adds attribute ti this json object at specified position.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsonArrayImpl |
class |
JsonObjectImpl |
class |
JsonValueImpl |
| Modifier and Type | Method and Description |
|---|---|
JsonValue |
JsonValueImpl.findFirst(PathMatcher matcher) |
JsonValue |
JsonObjectImpl.findFirst(PathMatcher matcher,
List<String> path) |
abstract JsonValue |
JsonValueImpl.findFirst(PathMatcher matcher,
List<String> path) |
JsonValue |
JsonArrayImpl.findFirst(PathMatcher matcher,
List<String> path) |
JsonValue |
JsonObjectImpl.first() |
JsonValue |
JsonArrayImpl.first() |
JsonValue |
JsonObjectImpl.first(String name) |
JsonValue |
JsonArrayImpl.get(int index) |
JsonValue |
JsonObjectImpl.last() |
JsonValue |
JsonArrayImpl.last() |
JsonValue |
JsonValueImpl.parent() |
JsonValue |
JsonArrayImpl.remove(int index) |
JsonValue |
JsonAttributeImpl.value() |
| Modifier and Type | Method and Description |
|---|---|
List<JsonValue> |
JsonObjectImpl.all(String name) |
List<JsonValue> |
JsonValueImpl.findAll(PathMatcher matcher) |
List<JsonValue> |
JsonArrayImpl.toList() |
List<JsonValue> |
JsonArrayImpl.values() |
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
JsonArrayImpl.add(JsonValue value) |
JsonArray |
JsonArrayImpl.add(JsonValue value,
int index) |
JsonObject |
JsonObjectImpl.add(String name,
JsonValue value) |
JsonObject |
JsonObjectImpl.add(String name,
JsonValue value,
int index) |
void |
JsonArrayImpl.remove(JsonValue value) |
void |
JsonAttributeImpl.setValue(JsonValue value) |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonObjectImpl.findAll(PathMatcher matcher,
List<JsonValue> values,
List<String> path) |
abstract void |
JsonValueImpl.findAll(PathMatcher matcher,
List<JsonValue> values,
List<String> path) |
void |
JsonArrayImpl.findAll(PathMatcher matcher,
List<JsonValue> values,
List<String> path) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
JsonBoolLiteral
Boolean literal.
|
interface |
JsonExpLiteral
Exponent literal value.
|
interface |
JsonFracLiteral
Fractional literal value.
|
interface |
JsonIntLiteral
Integer literal value.
|
interface |
JsonLiteral
Abstract literal value.
|
interface |
JsonNullLiteral
Null literal value.
|
interface |
JsonStringLiteral
String literal.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsonBoolLiteralImpl |
class |
JsonExpLiteralImpl |
class |
JsonFracLiteralImpl |
class |
JsonIntLiteralImpl |
class |
JsonLiteralImpl |
class |
JsonNullLiteralImpl |
class |
JsonStringLiteralImpl |
| Modifier and Type | Method and Description |
|---|---|
JsonValue |
JsonLiteralImpl.findFirst(PathMatcher matcher,
List<String> path) |
| Modifier and Type | Method and Description |
|---|---|
void |
JsonLiteralImpl.findAll(PathMatcher matcher,
List<JsonValue> values,
List<String> path) |
| Modifier and Type | Method and Description |
|---|---|
Match |
PathMatcher.match(List<String> currentpath,
JsonValue currentvalue)
Returns result of match
|
Match |
SimplePathMatcher.match(List<String> currentpath,
JsonValue currentvalue) |
| Modifier and Type | Method and Description |
|---|---|
static JsonValue |
JsonParser.parse(JsonSource source)
Parse json from source.
|
static JsonValue |
JsonParser.parse(Reader json)
Parse json from reader.
|
static JsonValue |
JsonParser.parse(String json)
Parse json from string.
|
Copyright © 2018. All rights reserved.