Questions tagged [json]
128 questions
3
votes
1 answer
multiple post requests using wget and same base-url
wget has nice option that lets you allow downloading multiple files from same location
(I mean combination of --base and --input-file)
Advantage of this, is that if possible wget tries to reuse opened socket/connection.
I was wondering if it's…

GiM
- 131
- 1
- 1
- 2
3
votes
4 answers
Fatal error: Call to undefined function json_encode() ..?
Im trying to use json with php and i keep getting the error
PHP Fatal error: Call to undefined function json_encode()
I am using php version 5.3.6 and on phpinfo(); nothing mentions json. Any suggestions?

Jonah Katz
- 133
- 1
- 1
- 5
3
votes
2 answers
Terraform: How to dynamically generate a block of a JSON policy?
I have the following resource:
resource "aws_iam_user_policy" "ses_send_policy" {
count = var.enabled ? 1 : 0
name_prefix = var.user_policy_name_prefix
user = aws_iam_user.ses_smtp_user[0].name
policy = <

Jacek
- 53
- 2
- 2
- 4
2
votes
0 answers
Parsing JSON event in Logstash
I have log in following format, it is a plain json with nested fields.
{
"level": "info",
"message": {
"req": {
"headers": {
"host": "localhost:8080",
"connection": "keep-alive",
…

vkpro
- 21
- 1
- 2
2
votes
2 answers
Ansible parsing a JSON output
I'm using URI in order to get a JSOn output to a register called "vchosts"
TASK [debug]…

Vidanez
- 21
- 1
- 2
2
votes
1 answer
Convert JSON to CSV-BASH
JSON file:
"UserDetailList": [
{
"UserName": "citrix-xendesktop-ec2-provisioning",
"GroupList": [],
"CreateDate": "2017-11-07T14:20:14Z",
"UserId": "1234556",
"Path": "/",
…

Milister
- 193
- 1
- 2
- 8
2
votes
2 answers
Run bash command with json parameters from jq
How can I run a bash command for every json object in a json array using jq? So far I have this:
cat credentials.json | jq -r '.[] | .user, .date, .email' | mycommand -u {user} -d {date} -e {email}
This doesn't seem to work. How can I take the…

danielrvt
- 239
- 5
- 13
2
votes
0 answers
AWS-Hadoop Data Analytics Implementation for Multiple JSON Files
I am new to hadoop and AWS. I have setup multi-node (4 instances t2.large) AWS EC2 cluster with cloudera Hadoop distribution. I have tested the environment with basic examples using CSV files such as word count.
Now, my main project is to analyze…

Rash
- 21
- 1
2
votes
3 answers
Output IPaddress of VM using ARM template
Have a ARM template (https://github.com/jmspring/arm-template-neo4j-docker/blob/master/azuredeploy.json) which will launch a instance and assign a public IP.
here i need to print the IP address as Output. i tried adding the following to the…

mebb
- 29
- 1
- 4
2
votes
1 answer
ansible custom facts returning string not array
I have a custom fact for my servers to retrieve customer data. This works fine on the machine and returning valid json. I can write the output to another facts-file and this works perfectly fine too. But when I do ansible setup the script returns…

Timo
- 143
- 7
2
votes
2 answers
Knife not parsing JSON variable in PowerShell
I am trying to create an amazon EC2 instance using "knife ec2 server create" and passing in JSON to override the default settings by using the -j option where $json is properly formed JSON text and I get the same error if I quote the variable or…

Neil Simon
- 21
- 1
2
votes
1 answer
Chef: Load Attributes from encrypted databag in json role
I'm want to use the postfix cookbook for chef. The sasl password is expected to be in an attribute. So usually you would do this:
"default_attributes": {
"postfix": {
"sasl": {
"smtp_sasl_passwd": "somepassword"
}
}
}
The thing…

jcvj
- 33
- 5
2
votes
0 answers
PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/json.so' undefined symbol: ZVAL_DELREF
I have an issue where I am unable to use JSON, which would appear to be because of the following error. There is another thread on this forum this touches on a similar issue, but it's not quite the same.
I am using CentOS 5.6 and have the following…

crmpicco
- 231
- 1
- 3
- 11
2
votes
5 answers
Will firewalls block my non-HTTP network protocol even if I use TCP port 80?
I want to create a simple JSON-based protocol to allow my game to talk to my custom server, but I don't want embed it in HTTP.
If I send a custom text-based protocol request to my server on port 80, will firewalls block it for not using HTTP format,…

MindJuice
- 21
- 1
- 3
2
votes
1 answer
Create JSON Patch 6902 from two yaml/json files
Imagine I have a file foo.yaml and a modified version of this file called foo2.yaml.
Is there a way to create a correspondig json patch 6902?

guettli
- 3,591
- 17
- 72
- 123