Category "json"

Encoding Realm models using @Persisted gives a Swift EncodingError message

When trying to encode this: class MyClass: Object, Codable { @Persisted var someValue: String } // I've created and added MyClass to Realm. I then query for

Extract data from a JSON received from an HTTP response

So I have an HTTP response that gives me this data: { "result":"success", "records":{ "509442013":{ "nif":509442013, "seo_url":"ne

How to display Images from Internet in JavaFX(not working)?

I want to take the url of a image from a API, which I did. I also get the URL of the image that I want, but the image doesn't display in the JavaFX Scene. Strin

How to fetch data that is in JSON format from an API using python to a .db file

I have an API: https://baseballsavant.mlb.com/gf?game_pk=635886 I want to fetch the data from here (which is in JSON format) using a python code and create a ta

JSON Database doesn't work correctly as per REST technique

I created a JSON server and this is the data that I'm using. However, when I'm trying to query the examlist and relate it to the students (i'd like to receive t

Laravel Json Reponse running really slow

My code suddenly started working really slow. I don;t see any reason, noting was changed or updated. return response()->json([ 'status' => 'su

Newtonsoft.Json.JsonSerializationException Message=Cannot deserialize the current JSON object

here the ex Newtonsoft.Json.JsonSerializationException Message=Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collection

Adding a function to imports routes in app.use()

Hi everyone I have an API and I have made a function to check if a user is authenticated, if he is then the API redirects him to the home page else to the /logi

How to set a text from parsed json variable in Flutter

I have a problem with parsed JSON in Flutter-Dart. Actually, there is no problem, but there is a method which I don't know. I'm getting data from a PHP server a

Can we use dataclasses as DTO in AWS python Lambda for nested JSON

I was looking out for a structure like DTO to store data from json in a AWS python Lambda. I came across dataclasses in python and tried it to create simple dto

Empty Body HTTP Post request Flutter

I am trying to send a Post request but the body of the request is meant to be empty and I have tried the endpoint on postman with an empty body and it works. Bu

Importing extra API data via importJSON + usage of data from json in formulas

I have made a google sheet with support of Tanaike. It is fully functional but I want to change something in the input and also a colum resulted in another form

How to verify ReCAPTCHA token in js?

I have written the following function in js to verify a ReCAPTCHA token: export async function validateHuman(token) { const secret = "funny_little_secret";

Pydantic: Save nested settings

I'm currently trying to automatically save a pydantic.BaseSettings-object to a json-file on change. The model is loaded out of the json-File beforehand. A minim

how to get list of product under category in vue js

Hello I'm new to vue and I have a list of json data which has a list of products under category, please how do I get to display a product under each category H

CSV with Embebbed JSON using Python

I'm working with GWAS data. Need help. My data looks like this: IID,rs098083,kgp794789,rs09848309,kgp8300747,..... 63,CC,AG,GA,AA,..... 54,AT,CT,TT,AG,..... 12,

CodeBuild succeeds while Node build command has failed

Let's assume that we have AWS CodeBuild project which buildspec file contains the following: "phases": { "install": { "runtime-versions": { "nodejs": 14

Swift Playgrounds iPad - parse from json Financial Modelling Prep API

G’day I’m trying to pull financial data from the FMP API. import SwiftUI import PlaygroundSupport import Foundation let url = URL(string: "https://

Output multiple elements as a JSON array in XSLT

I have an XSL Code as shown below. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0

JSON with roots for every selected day

I am struggling with the problem with nesting root for every day (it's an element of my table). I'd like to get nested Key: value pair of day from table Day. He