Questions tagged [json]
128 questions
1
vote
0 answers
AWS EC2 IAM User Policy Error
I'm trying to create a user policy which allows specific users access to only the following permissions within a specific VPC:
Create Instances
Start Instances
Stop Instances
Terminate Instances
I created and testing the policy in IAM and it works…

HGF
- 11
- 1
1
vote
1 answer
package org.json does not exist
I downloaded the JSON library for Java from Maven Repo and installed the .JAR file at the Java library directory on UBuntu 14.04. I tried compile a simple JAVA snippet for JSON parsing, but the compiler (javac) is telling me that the "org.json"…

ivanleoncz
- 1,643
- 6
- 19
- 32
1
vote
0 answers
Amazon EC2 gives internal server error when posting via Python
I have a problem with python API and MY ec2 instance. When I am trying to post a json I am getting an error like
500 INTERNAL SERVER ERROR
{"error_message": "Sorry, this request could not be processed. Please
try again later."}
I have one…

thomas chacko
- 21
- 5
1
vote
2 answers
Passing JSON application log to remote LogStash via NXLog on Windows
I have been trying to pass logs from a windows application which are already formatted in JSON to logstash via NXlog.
When I have NXLOG send the file to Logstash, I get blasted with errors in the logstash.log:
:message=>"An error occurred. Closing…

Noobixide
- 126
- 1
- 13
1
vote
2 answers
Linux program used to gather installed packages, processes, listening ports, etc.?
It's hard to Google this because it seems like everyone and their kid sister has written a script to gather system stats!
I once saw a mature program written that is used to gather system stats like installed packages, listening ports, users,…

Synthead
- 131
- 2
1
vote
1 answer
How to substitute a string from an awk result?
I have a JSON file which contain multiple occurrence of replaceme.
I only want to substitute an occurrence based on a specific string found a few line above.
E.g.,
[...]
"title" : {
"Propertie1" : "xxxx",
"Propertie2: "replaceme"
…

Bastien974
- 1,896
- 12
- 44
- 62
1
vote
0 answers
jsonrpc service nginx ssl configuration
I have a python jsonrpc service running in the server on port 8082.
I want to reach it with php jsonRPCClient. (and have to be https)
My nginx server looks like:
server {
listen 443;
server_name service.mydomain.com;
ssl …

user227241
- 11
- 2
1
vote
1 answer
sending json based messages using syslog-ng and amqp
How do you properly format json messages and send them over amqp with syslog-ng?
The json format should look something like this.
{"log":"This is the error message...", "date":"xxx", "source":"xxx"}
The problem I have is that the message is not…

eandersson
- 43
- 1
- 7
1
vote
1 answer
Loading JSON in PHP53: ZVAL_DELREF in Unknown on line 0
I'm trying to loading JSON into the new-installed PHP5.3.1 on a CentOS server. Previously there was a PHP5.1 or near and due to the latest version of WordPress I had to upgrade the PHP.
I tried to install JSON via yum with:
yum install…

Max
- 151
- 1
- 7
1
vote
1 answer
Update JSON Payload using Powershell and Nutanix API
I'm currently writing a script that allow to update Nutanix VM Categories. Categories format is key:value and a VM may have no categories, 1 or multiple.
Process to do that is quite simple : first I create a request to get an existing VM…

motorbass
- 303
- 2
- 12
1
vote
1 answer
Using Zabbix to record JSON output from REST api? is it possible
I'm trying to use Zabbix (5.0) to capture the response from a REST API.
If I paste the following into a webbrowser (or wget / curl etc)
http://{username}:{password}@10.1.2.3:8443/api/metadata/
I get the response I…

IGGt
- 135
- 1
- 8
1
vote
1 answer
Append JSON dictonaries
I am using ansible 2.9 and cannot lookout for a way to append below JSON structure with data
"Variables":[
{
"Strings": [
"abc",
"xyz"
],
"Inputs": true
}
]
I want to add 'efg' in strings, but…

AniK
- 13
- 4
1
vote
1 answer
Issues with converting JSON to CSV with nested values
So far I have had no problems converting standard JSON to CSV with jq in the past. But now my data becomes complicated.
Major base tags are account and subaccount. All other values are variables. The entry year got variable values and changed by…

safect
- 13
- 5
1
vote
1 answer
failed to recognize JSON request: 'EOF'
I'm trying to use a Rest API, but when I query, I receive the following error that I don't understand, I've tried to look at similar questions here but they are very particular cases. This is the code I use
PAYLOAD =' {"query":{
"query…

minu
- 11
- 3
1
vote
1 answer
Nginx removes post data with content-type header
I am making posts like this:
curl 'http://localhost/api.php' -H 'Content-Type: application/json' --data 'names=[{"name":"name"}]'
Which results in the post data being deleted.
If I remove the content-type header, e.g.
curl…

Kohjah Breese
- 171
- 2
- 13