Questions tagged [json]
128 questions
0
votes
1 answer
Phusion Passenger slow rendering JSON response
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 in 573ms.
Completed 200 OK in 573ms (Views: 0.1ms…

Jordan Owens
- 101
- 2
0
votes
3 answers
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:
Warning: Invalid argument supplied for foreach() in…

user715564
- 143
- 2
- 7
0
votes
1 answer
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": "vagrant",
"iso_url":…

Hyperfocus
- 1,177
- 4
- 14
- 23
0
votes
1 answer
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/ {
if ( $arg_callback ) {
…

Ryan Kennedy
- 203
- 2
- 11
0
votes
1 answer
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 can I keep the contents of my response intact?

Keith Walton
- 175
- 1
- 10
0
votes
1 answer
PHP Fatal error: Ca ll to undefined function json_encode() ..?
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 version 5.3.6 and on phpinfo(); nothing mentions json.…

Jonah Katz
- 133
- 1
- 1
- 5
0
votes
2 answers
Which CMS for a mobile app? No HTML, just XML or JSON
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 data transfer over a web service.
Which is the best…

Sascha
- 109
- 1
- 2
0
votes
0 answers
How do files/attachments appear within the JSON output of the Microsoft Graph API 'Get Incident' HTTP call?
I'm currently working on an Azure Logic App, and wanted to know how files/attachments appear within the JSON output of the graph api 'get incident' call. All of my test outputs so far have not contained any attachments within the emails, and I need…

Xav MX
- 1
0
votes
1 answer
Jira - REST API returns HTML on one VPS but JSON on another VPS
I am facing a very strange issue which I cannot solve. Basically, I have 2 VPS machines which I connect via RDP as they are both Windows Server machines. I have cURL on both of them. One is running Windows Server 2016 which we will call SERVER A.…

matead
- 1
- 3
0
votes
0 answers
Errors importing JSON file to MySQL using mysqlsh Util.import_json
I am having errors in attempting to import a file into MySQL (8.0.32-0ubuntu0.22.04.2) using:
mysqlsh mysqluser@localhost/jsondb --import /path/to/file.json
If the file is in, say, my home directory, regardless of what I do,
mysqlsh…

Werewolf Lord
- 1
- 1
0
votes
1 answer
How to prevent the Chrome Default Browser Prompt and Welcome Screen Using Master Preferences file?
I am attempting to deploy Chrome and have followed Jay Michaud's guide found HERE.
I have created my JSON file corresponding to Chrome's most recent provided information on doing so found in the links provided in Jay's guide. I minify/compact my…

ahelton
- 1
- 1
0
votes
1 answer
AWS CLI : How to use "--query" to get output from nested JSON
I am using aws-cli v2 to get the --query output from AWS Describe-volumes. In this, I am trying to get the volume id, size, Instance ID, state. Instance ID is nested in the AWS Describe-volumes.
Source :
{
"Volumes": [
{
…

Pankaj Rudrawar
- 3
- 2
0
votes
0 answers
Google script urlfetchapp provides different results than browser (wordpress REST api), why?
I simply need to pull all my users from wordpress. When I urlfetchapp as in the script below, it gives a 406 error but shows the first users in its truncated response, so I set muteHttpExceptions and get the first full page of users. I cannot get a…

onyxwolf
- 1
- 1
0
votes
0 answers
AWS Eventbridge - How to return Input Transformer variables when passing to SNS?
I'm setting up a SNS topic for custom EventBridge patterns for compliance purposes. To eliminate a lot of the JSON into something more human readable, I am using the following Input Transformer configuration with an event grabbed straight from…

Lunamare
- 1
0
votes
0 answers
Nginx headers parsing
For example, I have nginx and incoming JSON header:
{
"orgs" : {
"first_org_roles": ["role_a_r", "role_b_r", "role_c_r"],
"second_org_roles": ["role_d_r", "role_e_r", "role_f_r"]
}
}
Is it possible to parse it into an…

nvp
- 1