Category "json"

Postgres Subquery - How to create ALIAS in object format from subqueries

I am trying to wrap several queries into 1 complex query. Here is the scenario. Given a user_id of 'xxxxx-xx-xxxxx' I have to query for several data points with

Variable retrieved from json data doesn't seem right

I retrieve data from mysql server and one of the fields is an int value (1 or 0 ) and it's printed right (1 or zero ) but when I try to apply an if condition on

Compact but pretty JSON output in python?

JSON is written either with indent=None (default) as a single line (unreadable to a human eye) or with ident=N with a newline after each comma. What I would lik

Is there a way, I can empty the whole JSONObject -- java

I have to populate a json object like this, let say it is named detailJSON: {"amount": "5.00", "ac_no": "123456" } I do it this way: detailJSON.put("amount

HttpServletRequest unable to get body of request

I'm trying to create a little test servlet (Tomcat 10) to accept simple "POST" messages, however no matter what I've tried the servlet never seems to get the bo

Protocol Buffer JSONFormat upper camelCase issue

<dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java-util</artifactId> <version>3.9.2</version&g

Python Flask calling functions using buttons

Once the button in my flask template is pressed I'd like it to call a python function defined in app.py that I made to be available to be called within the temp

How to parse json to get all values of a specific key within an array?

I'm having trouble trying to get a list of values from a specific key inside an json array using python. Using the JSON example below, I am trying to create a l

JSON data enum types

I have a JSON object like this. var data={ "Company" : "XYZ", "company" : ['RX','TX'] } The above json data has 2 keys Company whose type is string and compa

Passing json text as command line argument

I am trying to pass the following JSON text into my python code. {"platform": "android", "version": "6.0.1"} My code is as follows. import sys import json d

How to pass Json parameters to powershell script

I would like to pass Json data to Powershell script. PowerShell script: Get-AzMySqlFirewallRule -ResourceGroupName "dev" -ServerName "dev-DB-Server" | Out-File

JSONPath to transform and map to different tiers of data with a single output

I am using JSONPath and this node module https://www.npmjs.com/package/jsonpath-object-transform to transform a JSON obj into a different output. This is simila

Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?

I'm using Spring 4 MVC with Jackson 2 for my service. For one of the operations I have a request object that has an attribute where the leading camel case word

Excel - We found extra characters at the end of JSON input

I am trying to import my json file to excel via the get data function. When doing this i get an error saying that "We found extra characters at the end of JSON

Error occured Invalid payload provided. No JSON object could be decoded Coinbas

I having been battling this error for weeks now, read hundreds of resources that has just proven futtile and contacted coinbase support without getting any resp

How to insert API response into HTML

I used pure function to create wrapper for multiple HTML elements and don't understand how to insert JSON response API data into it. Can you help to create one

How can I remove JSON property stored in a SQL Server column?

I have a task to remove a JSON property saved in a SQL Server database table's column. Here is the structure of my table OrderId Name JSON In the JSON c

Running a command cy.exec('npm run sfdx:latest-leads') will change the json file format

Current behavior I'm currently working on a project where I set up a command in my package.json. As soon as I run that command through a cypress file, it seems

Running a command cy.exec('npm run sfdx:latest-leads') will change the json file format

Current behavior I'm currently working on a project where I set up a command in my package.json. As soon as I run that command through a cypress file, it seems

Swagger-codegen: error: ignored arguments: 'Object'

I'm getting a weird error, and I can't seem to google the right things, as I'm finding no help online. I am writing a script that converts swagger files to type