Questions tagged [json]

JSON (JavaScript Object Notation) is a lightweight data representation format that resembles JavaScript source and that is can be easily red by machines and edited by humans with some effort.

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
154 views

How to render geojson locally

I have some visualizations which consists of data in the GeoJSON format. I would like to render the features to a png file. There are some sites which provide this functionality. I have for example ...
2
votes
0answers
83 views

JSON -> csv creating header line and padding header if found empty field

I have a programme in bash that get JSONline files with several million of these object per line (See source) { "company_number": "09626947", "data": { "address": { "address_line_1": "...
2
votes
2answers
558 views

How to format streaming JSON output from Node.js?

I have a Node.js server that uses JSON logging. When running the server locally, it outputs log entries as JSON objects which are quite tedious to read. I would like to pipe the output through a ...
1
vote
0answers
429 views

Interepreting WHOIS raw output

I am trying to interpret the WHOIS data which was output using a custom service. The data looks like this: { "rawText": "MarkMonitor is the Global Leader in Online Brand Protection.\r\n\r\nDomain ...
0
votes
0answers
36 views

Add bash variable as JSON key and value into object

I have a JSON array of objects like so . [ { "id" : "tmp1387816934708382026", "owner" : "john", "x11-display" : ":5", "x11-authority" : "/run/user/john/dcv/tmp1387816934708382026....
0
votes
1answer
70 views

Get parent nodes by child node selector with jq

I'm trying to parse json with jq { "xxx": { "aliases": { "business_event": { "is_write_index": true } }, "mappings": { "...
0
votes
1answer
44 views

Rename files based on JSON content using jq

I need to make a shell script that uses jq to rename below mp4 file(s). (could have use jasonpipe but didn't know how to install it on mac) File Dowloaded: title1-1000221327.mp4 title1-1000221327....
0
votes
0answers
84 views

iproute2 - ip addr json import

I can get a json export from my network configuration with following command: ip --json addr show result: [ { "ifindex": 1, "ifname": "lo", "flags": [ "LOOPBACK", "UP", ...
0
votes
0answers
166 views

LogStash Json ParserError

I need to send a log with JSON format from rsyslog to logsatsh and then from logstash to graylog. All the steps I have done. step 1 : config /etc/rsyslog.conf *.* action(type="omfwd" target="192....
0
votes
1answer
94 views

Need to do SED filtering on a file

Just wanted to remove last occurrence of , from the below file using SED. ubuntu@kops:/mujahid$ cat change-resource-record-sets.json { "Comment": "Update record to reflect new IP address of home ...
0
votes
0answers
73 views

Replace all contiguous newline chars to a single comma

I have this git log command: const command = [ `git log ${branch} -${count} --grep="${grep}"`, ` --pretty=format:'{"subject":"%s","body":"%b","commit":"%h","sanitized_subject_line":"%f",`, ...
0
votes
0answers
930 views

Create JSON to be passed as an argument to a method that updates cloud foundry service

Trying to pass a JSON object from one shell script to another. If I send a JSON object with one value it works with the following: objectStorageCupsConfigData='{\"containerName\":""\"$...
0
votes
1answer
65 views

Hadoop cluster with Ambari - best way to modify configurations

We have an Hadoop cluster, clients are installed on Linux Red Hat machines and central management via Apache Ambari. yum list | grep ambari-server ambari-server.x86_64 2.5.0.3-7 ...
-1
votes
2answers
251 views

Using filter condition in python -mjson.tool command

Can I use a filter condition in python -mjson.tool command to select objects which has specific attributes? For example, I have a sample.json file with for objects out of which two has an attribute "...
-1
votes
1answer
116 views

Replace a value in a file, in a certain context, with an operation result

I have an array of JSON object with inside local urls and speed parameters like [{server:"192.168.0.100", speed:34}, {server:"192.168.0.130", speed:52},...] I need to update the speed value for each ...
-2
votes
3answers
51 views

Find and replace inside string based on pattern and exception cases

I have a JSON string that returns some key value pairs but if the value is numeric it doesn't enclose it with double quotes so my JSON parsing isn't working for those cases. My idea is to manipulate ...