Multiline for multiple values within square brackets
See original GitHub issueThanks for this tool! Would there be a way to make jtbl
recognize that values separated by commas within square brackets should be on new lines, with json
files of the following structure?
{
"Date": [
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00",
"2021-08-24 21:00:00"
],
"Location": [
"Indonesia - TERNATE/BABULLAH",
"Bolivia - TRINIDAD",
"United States - PENSACOLA, FL",
"Russian Federation - IVDEL'",
"India - GULBARGA",
"Honduras - CHOLUTECA",
"United States - JACKSONVILLE/INTNL., FL.",
"Honduras - LA MESA (SAN PEDRO SULA)",
"Russian Federation - JARCEVO",
"Russian Federation - VEL' MO",
"Azerbaijan - GUBA",
"Niger - NIAMEY-AERO",
"Vietnam - PHU LIEN"
]
}
Currently, when I pipe that into jtbl
, it just shows a table with two columns and a single row containing all values separated by commas.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (10 by maintainers)
Top Results From Across the Web
Regex python: match multi-line float values between brackets
In the below example data, I want to extract all the float values between brackets belonging only to "group1" using regex, but not...
Read more >Multiple lines one side of equation with a Curly Bracket - TeX
Closed 6 years ago. I am trying to write an equation that looks like this, everything should be left aligned on the right...
Read more >Multi-line arrays in square brackets cause YAMLSemanticError
The library fails to parse multi-line arrays in square brackets. I stumbled upon this issue when speccy used this library for parsing the ......
Read more >How to bracket over multiple lines of text in Word document?
Bracket over multiple lines of text with formula box · 1. Press the “Alt” + “=” keys to insert a formula box, and...
Read more >Brackets and Parentheses - Overleaf, Online LaTeX Editor
You can easily control the size and style of brackets in LaTeX; this article explains how. Here's an table of listing some common...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I opened a feature request to investigate how to do this. (#7)
Awesome! Now the json file indeed is much easier to read, and I can simplify the bash script:
This is getting exciting! I need to focus on better implementing
fzf
(handle multi selections, offer only available data and not the full list, possibly prompt for scraping if not already done) and adding human-readable categories, but on the Python side I think my main issue will be when repeating requests multiple times: this appends the new result to the existing json file, but won’t check for duplicates. I’ll check your repositories, I see that there are a lot of json manipulation tools and maybe there’s already something to deal with this issue.