Category "json"

SQL - UTF-8 to varchar/nvarchar Encoding issue

Problem background - I am receiving response data from a website, formatted in json and UTF-8 encoded. A body attribute of json has values in a base64binary typ

Remove new lines from JSON

Consider I have the following string: { "{\n <<<-- error \"SomeKey\": {\n \"somevalue\": \"test\",\n, \"AnotherKey\": \"Long string shou

get multiple checkbox value as an array in angular

i'm trying to get values from multiple checkbox here https://stackblitz.com/edit/angular-ivy-uahtjx i try this approach but didn't with for me https://stackblit

import json file in react, webpack config error

I am trying to import a json file into my code. The js file for the same is import React from 'react'; import ReactDom from 'react-dom' ; import $ from 'jquery

Laravel $request->expectsJson()

I am doing an Ajax login for my Laravel application. I am using Angular: $http({ method: 'POST', url: '/admin/login', headers: { 'Content-Type': '

Unable to create same parameter value twice in json array

In this code, I am trying to creating something like this- public String KLYA_JSON_LookUp_MultiNode(String KLYA_To,String KLYA_DLRURL,String KLYA_To2) {

Getting "json.hpp: No such file or directory" error despite having json.hpp in the same folder as main.cpp

I'm trying to integrate the json c++ library from nlohmann, while simply copying the 'single_include' file to the same directory as my main.cpp file. As per the

Azure ARM Template - Create KeyVault Secrets in Keyvault in different Resource Group

I am deploying a Virtual Machine in Azure. The Username and Password are created automatically and passed as parameters at deployment. The resource group where

How to append json array using jq+shell in a loop?

I can create a json object with an array using jq like this echo '{"input":{"names":[]}}' | jq --arg val "alice" '.input.names[0] += $val'| jq --arg val "bob"

POST request can't pass body data from python

i am trying to post a request with body to flask REST-api but it doesn't work (Error Response 500), but when i am trying to post it from POSTMAN it works. bod

How to get relationship data with spring boot rest api?

I'm building a REST API with Spring Boot to retrieve boat information. I'm using Spring Data Rest and Spring Data JPA. When I get the data from the API, I don't

implement CRUD functionality with static data using JSON in asp.net core api project

How to do Crud operation on a locally stored json file? For example, I have id, name and roll number. I want to do get, post, put and delete in it using asp.ne

Updating multiple values of different keys in map using java

I have converted a JSON file to a map and I need to modify multiple values of different keys at once using JAVA. Following is the map converted JSON file: {

Javascript Autocomplete doesn't clear suggestion with no input

I watched a tutorial on how to use Javascript with Autocomplete using a JSON file and Fetch. Everything works fine; except for the following: If I clear the inp

how to get json data and print on console using angular

{ "appInfo": { "entityName": "Furnitue", "email": "", "appName": "appsw" }, "generatedEntity": { "fluentMethods": tr

Parse Json string to Classic ASP page

What is the best way to parse json string into classic asp using a library? Dim jsonString jsonString = {"date":"4/28/2017","custType":"100","vehicle":"1"} W

jq how to pass json keys from a shell variable

I have a json file I am parsing with jq. This is a sample of the file [{ "key1":{...}, "key2":{...} }] [{ "key1":{...}, "key2":{...} }] ... each line is a list

JSONObject always returns "empty": false

There is a Spring Rest Controller : @RestController @RequestMapping("secanalytique") public class SectionAnalytiqueController { @GetMapping(value = "/sect

Find Nth number of children using JavaScript and want to create Treeview

I have this array of hash and want to recursive this into treeview upto ParentTradeFairResourceId exist. I have tried but not succeeded to create an algorithm.

perl: Finding mean and variance of large numbers without overflow

I am using a subroutine (stats) to calculate statistics for a list of numbers. These numbers may be big enough to lose precision if stored as normal perl number