tyleradams / json-toolkit Goto Github PK
View Code? Open in Web Editor NEW"the best opensource converter I've found across the Internet" -- dene14
License: GNU General Public License v2.0
"the best opensource converter I've found across the Internet" -- dene14
License: GNU General Public License v2.0
The build runs
sudo apt install -y libpq-dev
This doesn't work on MacOS. It also won't work on Fedora/Centos/RHEL.
On my system (Ubuntu 20.04.2 LTS) I also needed to:
sudo apt install libpq-dev
After seeing this error when doing make
...
...
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5eu3ll3e/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5eu3ll3e/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-5eu3ll3e/psycopg2/pip-egg-info
cwd: /tmp/pip-install-5eu3ll3e/psycopg2/
Complete output (23 lines):
running egg_info
creating /tmp/pip-install-5eu3ll3e/psycopg2/pip-egg-info/psycopg2.egg-info
writing /tmp/pip-install-5eu3ll3e/psycopg2/pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-install-5eu3ll3e/psycopg2/pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-install-5eu3ll3e/psycopg2/pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-install-5eu3ll3e/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
...
There is no documentation for json-sql. The script is sufficiently complex that I can't easily figure out what it does or how to use it.
I would like you to tag versions so I'll be able to create a brew formula for this project.
Thank you.
@tyleradams First of all, thanks for a great toolset, by far this is the best opensource converter I've found across the Internet!
Seems to be a common problem for all tools (json/yaml/xml)
$ sed -e 's/\x01/\\u0001/g' -e 's/\x02/\\u0002/g' /path/to/valid/xml/file.xml | xml-to-json | sed -e 's/\\\\u0001/\x01/g' -e 's/\\\\u0002/\x02/g'| json-to-yaml
Traceback (most recent call last):
File "/usr/local/bin/json-to-yaml", line 15, in <module>
main()
File "/usr/local/bin/json-to-yaml", line 9, in main
data = json.load(sys.stdin)
File "/usr/lib/python3.8/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 349 (char 348)
Both
install json-diff /usr/local/bin
and
install json-empty-array /usr/local/bin
parts of the Makefile fail with
install: json-empty-array: No such file or directory
make: *** [install] Error 71
✗ uname -a
Darwin theDevice.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 arm64
✗ python3 --version
Python 3.10.6
✗ jq --version
jq-1.6
✗ bash --version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)
Copyright (C) 2007 Free Software Foundation, Inc.
# (Install in zsh though)
✗ go version
zsh: command not found: go
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.