Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json values for multi-document streams #139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/35KP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@
-DOC
-STR
json: |
{
"a": "b"
}
[
"c"
]
{ "a": "b" }
[ "c" ]
"d e"
dump: |
--- !!map
Expand Down
4 changes: 1 addition & 3 deletions src/6ZKB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
json: |
"Document"
null
{
"matches %": 20
}
{ "matches %": 20 }
emit: |
Document
---
Expand Down
4 changes: 1 addition & 3 deletions src/7Z25.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
-STR
json: |
"scalar1"
{
"key": "value"
}
{ "key": "value" }
dump: |
--- scalar1
...
Expand Down
8 changes: 2 additions & 6 deletions src/9DXL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@
-DOC
-STR
json: |
{
"Mapping": "Document"
}
{ "Mapping": "Document" }
null
{
"matches %": 20
}
{ "matches %": 20 }
emit: |
Mapping: Document
---
Expand Down
17 changes: 4 additions & 13 deletions src/9KAX.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,10 @@
"scalar1"
"scalar2"
"scalar3"
{
"key5": "value4"
}
{
"a6": 1,
"b6": 2
}
{
"key8": "value7"
}
{
"key10": "value9"
}
{ "key5": "value4" }
{ "a6": 1, "b6": 2 }
{ "key8": "value7" }
{ "key10": "value9" }
"value11"
dump: |
--- &a1 !!str scalar1
Expand Down
11 changes: 2 additions & 9 deletions src/JHB9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@
-DOC
-STR
json: |
[
"Mark McGwire",
"Sammy Sosa",
"Ken Griffey"
]
[
"Chicago Cubs",
"St Louis Cardinals"
]
[ "Mark McGwire", "Sammy Sosa", "Ken Griffey" ]
[ "Chicago Cubs", "St Louis Cardinals" ]
dump: |
---
- Mark McGwire
Expand Down
4 changes: 1 addition & 3 deletions src/PUW8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
-DOC
-STR
json: |
{
"a": "b"
}
{ "a": "b" }
null
dump: |
---
Expand Down
30 changes: 3 additions & 27 deletions src/RZT7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,33 +82,9 @@
-DOC
-STR
json: |
{
"Time": "2001-11-23 15:01:42 -5",
"User": "ed",
"Warning": "This is an error message for the log file"
}
{
"Time": "2001-11-23 15:02:31 -5",
"User": "ed",
"Warning": "A slightly different error message."
}
{
"Date": "2001-11-23 15:03:17 -5",
"User": "ed",
"Fatal": "Unknown variable \"bar\"",
"Stack": [
{
"file": "TopClass.py",
"line": 23,
"code": "x = MoreObject(\"345\\n\")\n"
},
{
"file": "MoreClass.py",
"line": 58,
"code": "foo = bar"
}
]
}
{ "Time": "2001-11-23 15:01:42 -5", "User": "ed", "Warning": "This is an error message for the log file" }
{ "Time": "2001-11-23 15:02:31 -5", "User": "ed", "Warning": "A slightly different error message." }
{ "Date": "2001-11-23 15:03:17 -5", "User": "ed", "Fatal": "Unknown variable \"bar\"", "Stack": [ { "file": "TopClass.py", "line": 23, "code": "x = MoreObject(\"345\\n\")\n" }, { "file": "MoreClass.py", "line": 58, "code": "foo = bar" } ] }
dump: |
---
Time: 2001-11-23 15:01:42 -5
Expand Down
12 changes: 2 additions & 10 deletions src/U9NS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,5 @@
-DOC ...
-STR
json: |
{
"time": "20:03:20",
"player": "Sammy Sosa",
"action": "strike (miss)"
}
{
"time": "20:03:47",
"player": "Sammy Sosa",
"action": "grand slam"
}
{ "time": "20:03:20", "player": "Sammy Sosa", "action": "strike (miss)" }
{ "time": "20:03:47", "player": "Sammy Sosa", "action": "grand slam" }
4 changes: 1 addition & 3 deletions src/UT92.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
-DOC ...
-STR
json: |
{
"matches %": 20
}
{ "matches %": 20 }
null
dump: |
---
Expand Down
Loading