Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OnGres Inc.
pgio
Commits
a12134b7
Commit
a12134b7
authored
Dec 19, 2018
by
Matteo Melli
Browse files
Fixed JSON input stream file is read twice.
parent
e1bf4f2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
main/src/main/java/com/ongres/pgio/main/Main.java
View file @
a12134b7
...
...
@@ -244,7 +244,7 @@ public class Main {
JsonValue
groups
=
Json
.
createReader
(
inputStream
).
readValue
();
if
(
groups
.
getValueType
()
==
ValueType
.
ARRAY
)
{
Json
.
createReader
(
inputStream
).
read
Array
().
forEach
(
element
->
{
groups
.
asJson
Array
().
forEach
(
element
->
{
if
(
element
.
getValueType
()
==
ValueType
.
OBJECT
)
{
appendFromObject
(
builder
,
element
.
asJsonObject
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment