The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
12 views

MySQL Json datatype to store historical price [closed]

I am wondering about possible solution to save historical data prices in MySQL 5.7+ with JSON datatype. Case description: I have a table of products current prices and product description called "...
1
vote
0answers
14 views

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 ...
0
votes
1answer
52 views

error “The json extension is missing. Please check your PHP configuration.” displayed after installng phpmyadmin

Installed phpmyadmin and tried to access http://www.example.com/phpmyadmin, but error displayed in my browser error : " The json extension is missing. Please check your PHP configuration." My ...
0
votes
1answer
112 views

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 ...
0
votes
1answer
58 views

Why HTTP 501 error of type JSON presented to UI as text/html instead of application/json?

I have front-end Angular running on Apache with back-end Spring REST API on Tomcat. I wanted to throw 501 error in some error case and want that response to be presented as JSON to UI (Content-Type ...
0
votes
1answer
68 views

JSON Parse Error in Windows Sensu Client Powershell Setup Script - unexpected character at line 1, column 1

I am creating a install script for Sensu on Windows and am getting this error upon starting the service: { "timestamp": "2016-04-14T23:05:45.043371+0100", "level": "warn", "message": "config ...
1
vote
1answer
133 views

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 ...
0
votes
0answers
64 views

Cant cache REST api by nginx

I use django through uwsgi for my API. I try this config upstream django_dev { ...
0
votes
0answers
118 views

accounting in rlm_rest Module freeradius

I work on a Hotspot Project with Coova Chilli and Freeradius. I Use FreeRADIUS in the latest stable Version 3.0.11. I created my rest and sites-enabled config file according to this post: Configuring ...
1
vote
1answer
100 views

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. ...
2
votes
1answer
79 views

awcli query option for multiple filter expressions

Given the output of aws ec2 describe instances I am trying to display objects that have no Platform value and DO have a VpcId value. So far I have come up with this: aws ec2 describe-instances --...
0
votes
0answers
12 views

How do I create a policy in AWS to allow a user to create security groups? [duplicate]

I took this Administrator policy from this link: http://aws.amazon.com/code/AWS-Policy-Examples/2435282702293422 { "Statement":[{ "Effect":"Allow", "Action":"*", "Resource":"*" }] } I tried the ...
0
votes
0answers
127 views

Logstash Custom Grok for JSON Blocks

I've got a custom log format as follows: %DATE %TIME subscribers [{json-block}], message {json-block} heres an example: 2016-01-17 01:51:56 subscribers [{"name":"1277::1331::146::INGESTED","url":...
2
votes
1answer
102 views

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 ...
0
votes
0answers
59 views

How to create a reusable string in cloudformation AWS?

I have to pass a string that formed from a number of variables which i use for many different things such as Tags and host names. is there a way of creating a reusable string that i can just Ref ...
0
votes
1answer
171 views

Error 404 or 500 when downloading large static JSON file in IIS 7

What I wanted to do was fairly simple you would think. Create static json file so browsers can cache output and you don't have to poll the database for large chunks of data. So I created a JSON file ...
0
votes
0answers
98 views

rrdtool xport gives no output while graph from same RRD file is as expected

So I've been using this rrdtool command for years to generate a graph from an RRD file: rrdtool graph /tmp/my_temp_filename.png --start=-86400 --end=-300 \ --title="My Title" --vertical-label='bps' --...
0
votes
0answers
38 views

How do you allow only EC2 instances with a specific tag to launch?

I am trying to create a policy that only allows AWS EC2 instances to be launched if they contain an OwnerID tag. I have already successfully limited launches to instances that are not oversized (i.e. ...
0
votes
1answer
142 views

rsyslog convert json to text on the fly

I have application logging events in JSON format for later structured queries, etc. Now I have a task to log the same messages in plain text (CSV probably) and I really don't want to log each event ...
0
votes
0answers
189 views

Squid GET request returns incorrect content type when using transparent mode

I'm trying to establish the cause of a strange issue with mobile device that goes through a Squid 3.3 proxy on CentOS 7 using transparent mode which is not able to access news content within the Bing ...
1
vote
0answers
116 views

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 ...
0
votes
1answer
1k views

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 ...
1
vote
1answer
4k views

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 ...
4
votes
2answers
4k views

Manipulate JSON in bash

I have a JSON file I need to update a particular value. { "Comment": "comment", "test": { "enabled": true }, "enabled": true, "otherStuff": blah, "otherStuff2": blah, "otherStuff3": ...
1
vote
2answers
65 views

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 ...
1
vote
1answer
94 views

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" : { "...
0
votes
1answer
406 views

FreeRADIUS Rest Module on Centos 6.x

I am attempting to add JSON support for the REST module on Centos 6.5 I have installed the json-c-devel package however when compiling FreeRADIUS it complains it can't find it: [root@dhcp01]# ./...
1
vote
0answers
230 views

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; ...
7
votes
3answers
9k views

What's wrong with this HTTP POST request?

I'm trying to fuzz a server using the Sulley fuzzing framework. I observe the following stream in Wireshark. The error talks about a problem with JSON parsing, however, when I try the same HTTP POST ...
2
votes
1answer
522 views

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": { "...
0
votes
0answers
644 views

Internaly hosted alternative to cloudbased nobackend solution like Firebase

In an environment where I can't use a cloud based service like Firebase, I'm looking for recommendation for an internally hosted nobackend solution. I could use node or meteor but really am just ...
1
vote
1answer
1k views

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"} ...
0
votes
1answer
382 views

Phusion Passenger slow rendering JSON response [closed]

I have a Rails 4 application that returns a large amount of data that is rendered as JSON (23K records/2.8MB document). Testing this call on my laptop using the WEBrick server, the request completes ...
0
votes
3answers
521 views

PHP script works on local MAMP server but not IIS 8 server

I have a PHP script that displays Tweets embedded in a site I built out on my local machine. When I uploaded the site to my IIS 8.0 server, the PHP script no longer works and I receive this error: ...
0
votes
1answer
735 views

No builder returned for name: vagrant Packer.io error

I just want to provision a standard Ubuntu 12.04 image with a shell script, and then package it so I can use it with Vagrant. This is the configuration I wrote: { "builders": [{ "type": "...
0
votes
1answer
721 views

nginx rewrite modify parameter

I'm trying to create a JSON/JSONP proxy for an external API. Here's my config so far: server { listen 80; server_name api.example.com; location /api/ { ...
2
votes
2answers
10k views

IOException: Socket read failed using Apache 2, mod_jk and Tomcat over AJP

I am getting the following Exception from time to time when my users are connecting with their Android devices to out JSON Rest Service: java.io.IOException: Socket read failed at org.apache....
9
votes
1answer
2k views

Can I alias all directory requests to a single file in nginx?

I'm trying to figure out how to take all requests made to a particular directory and return a json string without a redirect, in nginx. Example: curl -i http://example.com/api/call1/ Expected ...
2
votes
0answers
625 views

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/json.so' undefined symbol: ZVAL_DELREF [duplicate]

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 ...
0
votes
2answers
419 views

How do I return custom content with an error response in IIS 7?

My API returns JSON content with some errors, such as 500 (Bad Request). Under IIS 6, this worked fine. In IIS 7, once I turn off detailed error messages it simply returns the text "Bad Request". How ...
0
votes
1answer
731 views

PHP Fatal error: Ca ll to undefined function json_encode() ..? [duplicate]

Possible Duplicate: Enable json_decode() on my system Im trying to use json with php and i keep getting the error "PHP Fatal error: Ca ll to undefined function json_encode()". I am using php ...
1
vote
3answers
24k views

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 ...
1
vote
1answer
3k views

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 ...
4
votes
2answers
2k views

How to escape or remove double quotes in rsyslog template

I want rsyslog to write log messages in JSON format, which requires to use double-quotes (") around strings. Problem is that values sometime include double-quotes themselves, and those need to be ...
3
votes
1answer
2k views

nginx loggin $request_body produces weird encoding

I have an nginx server that logs POST $request_body to a file. When I post json to the server, it replaces quotes (") with \x22. My config looks like this server { server_name myServer; ...
1
vote
5answers
2k views

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, ...
0
votes
2answers
3k views

Which CMS for a mobile app? No HTML, just XML or JSON [closed]

I am a newbie in content management systems. I would need a CMS that can transfer content by XML or JSON to a client. It is ok if the CMS can also manage HTML websites, but the priority is on the ...