Skip to content

Commit fa748f3

Browse files
committed
issue-673 fix
1 parent a2cfd89 commit fa748f3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/main/java/org/eclipse/yasson/internal/jsonstructure/JsonStructureToParserAdapter.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ public BigDecimal getBigDecimal() {
103103
return getJsonNumberValue().bigDecimalValue();
104104
}
105105

106+
@Override
107+
public JsonValue getValue() {
108+
return iterators.peek().getValue();
109+
}
110+
106111
@Override
107112
public JsonObject getObject() {
108113
JsonStructureIterator current = iterators.peek();
@@ -115,6 +120,11 @@ public JsonObject getObject() {
115120
}
116121
}
117122

123+
@Override
124+
public JsonArray getArray() {
125+
throw new UnsupportedOperationException();
126+
}
127+
118128
private JsonNumber getJsonNumberValue() {
119129
JsonStructureIterator iterator = iterators.peek();
120130
JsonValue value = iterator.getValue();
@@ -123,7 +133,7 @@ private JsonNumber getJsonNumberValue() {
123133
}
124134
return (JsonNumber) value;
125135
}
126-
136+
127137
@Override
128138
public JsonLocation getLocation() {
129139
throw new JsonbException("Operation not supported");

0 commit comments

Comments
 (0)