the.bay.news

Best way of reading json from stdin

Ziggit
Best way of reading json from stdin
My program reads a json from stdin, and outputs a json to stdout. What exactly doesn’t really matter here, but in short the input json describes a database query, and the output json describes all the data that matches that query. This way I can do cat query.json | bin and have the result printed to stdout. This works, but when trying to call this from Godot, I run into issues. The Godot API for running executables is a bit peculiar, and stdin and stdout are grouped together. This means that c...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.