Category "json"

Asp .Net Core Json deserialize to model

Returns Json format data to me from an api. However, the type of the "FuelType" property inside the object may be different. For example, 1 time comes as follow

python ttp parser ignore line if I have ORPHRASE in template and consecutive blank spaces in input text

Envorionment: windows 10, python: 3.9, ttp: 0.8.4 I'm having a problem with ORPHRASE in the TTP template, and if there's consecutive blank-space characters in t

How to acess an entity under _links in Angular from Spring Data REST?

I encountered a problem which is very challenging to my Angular level. Could you give a help please? In Spring Data REST the entity Worker has a @OneToMany bidi

Converting Complex Tree Structure to JSON Python

I need to convert a Tree with the following class structure: Class Tree: def __init__(self, data): self.data = data s

OpenJson - Need to Flatten & Write Key Values & Objects to Columns

Given the following JSON structure, I'm struggling to find correct format to write the keys and values for 'users" to separate relational columns: Key Values fo

Bytes object has not attribute json with requests

I am extracting BTC history data from a website and want to store these results. I want to run this in a function and then use map because it's much faster than

How to convert rows under a column into a list under a dictionary under a list under a dictionary?

I have an excel file with the below column name as variantID and corresponding elements. I want the final output as {"filters":[{"tags":[{"k":201,"v":"201"},{"k

WUnderground, Extraction of Extremes Today

As contributor to WUnderground not a problem to read via API-call the JSON-outputfile with Today's values for my station. That JSON-file has a series of numbere

Convert of JSON to a java object and a list of java objects

I get this JSONObject response from an API { "meta": { "code": 200 }, "data": { "tracking": { "id": "lk46hwgbadfqcl2fyacyw00q", "c

Google Apps Script cUrl POST Request

I am trying to pull data from an API from https://app.scrapingant.com/ using Google Apps Script. The documentation is here: https://docs.scrapingant.com/request

JSON array item validation

I'd like to have tooling to perform certain validations on JSON. Explanation with examples: Given JSON fragment: { "optionsMinValue": 0 "optionsMaxValue

How to insert multiple JSON rows into a T-SQL table

I am trying to insert following JSON document into T-SQL: { "GLDETAIL": { "RECORDNO": "264378-1756289-919567--accrual", "BATCH_DATE": "02/01/2

Using python and suds, data not read by server side because element is not defined as an array

I am a very inexperienced programmer with no formal education. Details will be extremely helpful in any responses. I have made several basic python scripts to c

Having trouble expanding/normalizing a dataframe column of dictionary values into a dataframe/ other columns

I'm trying to expand a dataframe column of dictionaries into it's own dataframe/other columns. I have already tried using json_normalize, iteration, and list c

How to use dictionary data initialized in a "class" object

I expose the problem quickly: I have to create 3 classes. X Y and Z, inside X y and z are initialized as variables of class x but not as objects Y and Z. What i

Split / Explode a column of dictionaries into separate columns with pandas

I have data saved in a postgreSQL database. I am querying this data using Python2.7 and turning it into a Pandas DataFrame. However, the last column of this dat

How to download CSV from a nested object in javascript?

I want to iterate over an object in Javascript and create a CSV file from its internal objects. const list = { "right": { "label": "Right",

Pyspark: Extract Json Objects from Array

I need to extract objects from an array, where there's more than one object in that array I need to repeat for every id and if the field is null then I want to

Thread 4: Fatal error: 'try!' expression unexpectedly raised an error

I'm trying to learn to make an API call in swiftUI, I'm following the next tutorial https://www.youtube.com/watch?v=1en4JyW3XSI but the code is giving me an err

error parsing loadbalancer.yaml: error converting YAML to JSON: yaml: line 4: found character that cannot start any token

I ran this yaml file using kubectl apply -f loadbalancer.yaml command, but got "error parsing loadbalancer.yaml: error converting YAML to JSON: yaml: line 4: fo