Category "json"

Need help populating an ASP.net gridview using JSON datasource in c#

I have to create a gridview that is automatically populated with JSON. I have created the JSON folder, it works fully, i can save data to it no problem. The i

how to show {"POWER":"ON"} in else if (this.responseText == ({"POWER":"ON"})) { [closed]

Hi all I am trying to get my page to change the button color when I have a response from this.responseText. I know the response I get from Jso

django 'str' object has no attribute '_meta'

Sorry for my English. I have some data from another server, but I need to output this data like JSON. if i print response in console: { 'responseStatus': {

How to extract all (also nested) key names with jq

How can I extract all key names, even in nested objects with jq? For example, I have json: { "a": 1, "b": { "c": 2 } } and I want to get list:

Converting a POCO object with JsonPropertyName decorations into a URL query string

Is there an .NET API to convert a POCO object with JsonPropertyName decorations into a properly encoded URL query string? For example, for: public record AuthEn

React path to public folder in css background image

I am using Create-React-App and I want to add background image for my header section and I am doing this in that way: background-image: url('~/Screenshot_11.png

ERC721 NFT not showing in opensea (related to the metadata)

I was creating the DApp and succeeded to mint NFT in Rinkeby using IPFS (pinata) & Nethereum (C#). Now, I can get TokenURI using tokenURI function in ERC721

Merge json in nifi with JoltTransform

I would like to merge two different json in nifi. first json comes from an attribute to json processor and contains just an id, something like: { "id": "12

Passing JSON Data over TCP, Socket programming c#

I have created a desktop software server system, which accepts string from client and insert into database, here is the server code public class TcpServer {

SQLAlchemy (psycopg2.ProgrammingError) can't adapt type 'dict'

Couldn't find a solution on the web for my problem. I am trying to insert this pandas df to a Postgresql table using SQLAlchemy Pandas 0.24.2 sqlalchemy 1.3.

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