Questions tagged [json]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

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 ...
Xav MX's user avatar
  • 1
1 vote
1 answer
87 views

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 ...
motorbass's user avatar
  • 343
0 votes
1 answer
77 views

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 ...
matead's user avatar
  • 1
0 votes
0 answers
143 views

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, ...
Werewolf Lord's user avatar
0 votes
1 answer
395 views

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 ...
ahelton's user avatar
0 votes
1 answer
704 views

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. ...
Pankaj Rudrawar's user avatar
0 votes
0 answers
156 views

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 ...
onyxwolf's user avatar
0 votes
0 answers
507 views

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 ...
Lunamare's user avatar
2 votes
1 answer
348 views

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's user avatar
  • 3,543
0 votes
0 answers
123 views

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"], "...
nvp's user avatar
  • 1
0 votes
0 answers
399 views

create item with regex preprocessing using the zabbix API

I am trying to create Zabbix items using Ansible and Zabbix API. The problem is that preprocessing params must have a newline between them, that cannot be in a valid JSON value. The JSON I tried first ...
P.Péter's user avatar
  • 579
0 votes
1 answer
280 views

Error: The response is not a valid json response. WordPress Windows server

I personally rented a Windows virtual server and installed and set up mysql+phpadmin+IIS and after that I started my email server and tested it and everything was ok, then I installed WordPress and ...
Armin's user avatar
  • 1
0 votes
2 answers
239 views

Ansible module returns non json data

Ansible Azure module returns the data in a weird format Double single quoted characters. ''network_interface_names'': [''Ubuntu915''] As a result I can't use this anywhere to filter other resources. ...
user630702's user avatar
0 votes
1 answer
589 views

Copy large-size JSON content and paste it into MySQL column

I have a column with the data type "JSON" in the MySQL table(I have MySQL 8). I have a 20 MB JSON file created by my BE code and I would like to copy and paste the contents of the JSON file ...
ITnewbie's user avatar
  • 171
0 votes
1 answer
2k views

Power Automate: Duplicate chat members is specified in the request body

I'm creating a chat bot that handles basic IT Support tasks. I've created a flow within a Power Virtual Agent, that puts the user that made the support request into a teams chat with myself. I've ...
Thomton's user avatar
  • 13
-1 votes
1 answer
796 views

fetch between brackets on json with grep

i have the following json data "url": "https://www.etsy.com/listing/812858182/59ft-x-84ft-moroccan-rug-mrirt-rug-beni?utm_source=etsymeter&utm_medium=api&utm_campaign=api", ...
newbiline's user avatar
0 votes
1 answer
591 views

kyverno precondition for possible empty values

I am learning how to use kyverno to build some policies, but I am facing a few problems to understand some behaviour: My first scenario is I want block some resource that may or may not have the spec....
Jose's user avatar
  • 21
2 votes
1 answer
2k views

json_query help - not producing expected output

I am trying to build an array to use for with_nested, but I cannot get past why json_query isn't outputting the actual hosts assigned to each cluster: Play: - name: Index clusters.json shell: cat {{ ...
BrillCom's user avatar
  • 139
0 votes
0 answers
649 views

content type is returned as text/html while the expected is application/json

some endpoints are returning the content type as text/html while the expected is application/json causing CORS error in the client side. when requesting from my localhost or from the server's IP ...
Diaa Saber's user avatar
3 votes
2 answers
14k views

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 = ...
Jacek's user avatar
  • 53
1 vote
1 answer
4k views

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 ...
IGGt's user avatar
  • 135
4 votes
2 answers
8k views

How do I Generate a Bearer Token for cURL to Get Thru IAP (GCP)?

I need to cURL a web app hosted behind IAP on GCP. Normally, users log in through IAP and use the web app, but I need to run some cURL commands (interactive and non-interactive) that hit the web app ...
user450409's user avatar
0 votes
1 answer
1k views

Dynamically passing a json as a parameter in a "command" task

I have this task in my playbook: - name: Update instance tags command: oci compute instance update -c {{ compartment }} --freeform-tags {{ tag_var_json }} According to the oracle documentation ...
Ress's user avatar
  • 45
1 vote
1 answer
2k views

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", "...
AniK's user avatar
  • 13
1 vote
1 answer
604 views

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 ...
safect's user avatar
  • 13
0 votes
1 answer
838 views

Ansible: Iteration fails while looping over output variable

Here is my debug output from an ansible playbook: "msg": { "changed": false, "failed": false, "instances": [ { ...
Alfred Hitchkock's user avatar
1 vote
1 answer
713 views

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 ...
minu's user avatar
  • 11
-1 votes
1 answer
184 views

Azure policy definitions as code: avoiding duplicate parameter definitions

I'm looking to create a number of Azure policies using infrastructure as code. The MS Documentation advises a structure as below: . | |- policies/ ________________________ # Root folder for policy ...
JohnLBevan's user avatar
  • 1,214
0 votes
2 answers
2k views

ansible - template json for environmental variable in docker container

I'm trying to assign a one-liner json string to an environmental variable in a docker container. This is what the json look like: {"ip_access": {"IP_whitelist": {"192.168.99....
Lethargos's user avatar
  • 465
0 votes
0 answers
61 views

Query string printed in some responses

I have a very odd problem, I have a server running nginx as a reverse proxy for PHP. On the front end, I send ajax requests which expect json as response, when the request is made all works as ...
Tlacaelel Ramon Luis's user avatar
0 votes
2 answers
139 views

Json file with bash

I need delete space and value kubernetes from json file with use bash script: Content json file Input "spec": { "finalizers": [ "kubernetes" ]...
spawn1978's user avatar
0 votes
1 answer
146 views

Transform each item in a JSON array to a JSON object

I need to transform this simple JSON array: ["169","19","33"] to a more complicated JSON object for each item, like: { "groups": [ { "groupid&...
user5525652's user avatar
1 vote
1 answer
2k views

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 ...
Kohjah Breese's user avatar
0 votes
1 answer
586 views

Telegraf Tail file that contains json data to Influx

How can I extract the json data into influx by tailing a file that has the JSON data? EG: My logs are like this: 2020-12-01T18:34:06+02:00 10.132.90.194 {"wfd_successful_hits_sec": "0&...
sarvesh.lad's user avatar
1 vote
0 answers
902 views

invalid JSON to monitor SMART on Zabbix

I've followed these steps on github: https://github.com/v-zhuravlev/zbx-smartctl to monitor the SMART disks in my Winsows servers on Zabbix. BUt when I add the template to the host I'd configured, on ...
Camila's user avatar
  • 11
2 votes
0 answers
812 views

Lunajson not found in lua 5.2.3

I have installed lunajson with luarocks. When I attempt to use the module I keep getting the error below. I am just trying to decode a website that responds back with some json. The OS is running ...
user2236794's user avatar
0 votes
1 answer
266 views

Google Cloud Speech-to-Text API key error

I tried to use the Google Cloud Speech-to-Text API but without any success. I have an API key error. Here is my api call : curl -s -H "Content-Type: application/json" \ -H "...
Newty's user avatar
  • 1
0 votes
0 answers
101 views

automatically retrieve some fields from log file

My fortigate firewall send log message to my syslog server (CentOS 7). The syslog server store them to *.log file with rsyslog. Like this: Sep 24 00:00:00 192.168.20.20 date=2020-09-24 time=01:00:00 ...
user13877317's user avatar
2 votes
3 answers
4k views

How to retrieve the routing tables in JSON format (linux)?

The ip command is able to return some of its results in JSON format, but it seems to be unable to format the routing table(s). Here are some examples of what I mean. List of all addresses: ip --json ...
Alessio Periloso's user avatar
0 votes
1 answer
324 views

How can I set up syslog-ng to send only invalid JSON logs to a destination

I've set up syslog-ng 3.25.1 to read log messages from a file, parse them as JSON, and forward them to an ElasticSearch cluster. This works well when the messages are formatted correctly as JSON, ...
Ben Burns's user avatar
  • 111
4 votes
1 answer
20k views

Building List of JSON Objects in Ansible

I'm trying to build an array/list of JSON objects in Ansible. My playbook is called by specifying --extra-vars "userids=123456,654321". I then try to build the list with the following. "TBD" is ...
JScott's user avatar
  • 43
2 votes
1 answer
924 views

How to read docker json log files in a readable format?

I always back up docker json log files when I deploy a new image version. Is there a linux program or command that lets me browse the log output from backed-up json log files in a readable format ...
Mise's user avatar
  • 23
1 vote
1 answer
573 views

Working with array of object in Zabbix

My HTTP agent on Zabbix recieve data representing count of client's orders: { "orders": [ { "client_id": 1, "count": 2 }, { "client_id": 2, "count": 3 }, ...
Yury's user avatar
  • 11
0 votes
1 answer
47 views

How can i Parametrize Azure Json file?

Please see that we have configured Dashboard in our other Azure subscription from where we have downloaded its template. Now we want to make it IaC (Infrastructure as Code) in our new Azure ...
Malik Adeel Imtiaz's user avatar
0 votes
0 answers
763 views

NGINX not loading JSON marked up file

Somehow my NGINX isn't loading my JSON marked up files (.TXT & .JSON types). This is my NGINX.CONF.default #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/...
rwzdoorn's user avatar
  • 101
0 votes
1 answer
386 views

How can I create regular expression?

I need help with regular expressions. I have some queues in the rabbitMQ, about 1000: ha-collector-data-test2 ha-collector-data-1434 ha-collector-data-45-test3 ha-collector-data-terty4 ha-collector-...
perrfect's user avatar
1 vote
0 answers
4k views

Convert json file to prometheus metrics

I have nginx json access log like this, a file that append sample like this to end of file. { "time": "2019-11-27T08:23:39+00:00", "msec": 1574843019.787, "ip": "91.133.248.69", "agent_name": ...
Mohammad Hossein Fattahizadeh's user avatar
3 votes
1 answer
4k views

jq sort by date (iso 8601)

I try to sort json by date (field CreationTimeUTC) in iso 8601 format with jq 1.5. I found this post, but that return : 'Cannot index boolean with string "CreationTimeUTC"' jq '.Entities....
user5525652's user avatar
3 votes
1 answer
5k views

jq : Get values from children array and display on parent array [closed]

I try to get theses value : "VmDisplayName, CreationTimeUTC, EndTimeUTC, Reason, Result, State, TotalSize, BackupServerReference, BackupJobSessionReference" from this json : { "JobSessionUid": "...
user5525652's user avatar
1 vote
1 answer
421 views

Install gRPC php extension in elastic-beanstack [closed]

I need to install gRPC php extension elastic-beanstack. The way i found is to write a config file inside ".ebextensions" in order to automatically install the extension. For that I need to create yaml ...
Maverick's user avatar