Category "json"

How to create and open a json file?

Does anybody know why this code doesnt work? We are trying to create a json file and write some information in it. The aim is to create a user account, save the

How to loop and display array of objects and their nested arrays

I need help, I got stuck on objects with multiple nested arrays. I have a json file which consists of object, that holds array of objects, and these objects hav

Query if an azure table exists from azure logic app

I'm trying to create a table in azure storage tables IF it does not exists already. I did query the tablename list and put them in an array How can query my ar

Parsing JSON in React Native

I am currently using Google Firebase Firestore as a REST API. I feel like I am missing something quite basic as I am having a difficult time displaying data. I

Any array in JSON object is not empty

Is there a clever way to check if any array in a JSON element is not empty? Here is example data: { a = [] b = [] c = [1,2,3] }

RestAssured: posting json request having both String and Integer

I just want to POST json request(using restassured), for such json: { "userId": 1, "id": 111, "title":"test msg" "body": "this is test msg" } Im defining

How do you use a JSON array in a "WHERE IN" clause in MariaDB

I am using MariaDB version 10.2 I have an array of GUIDs stored as JSON in a table and I want to select rows from another table where the ID matches any of the

How to automatically reload the ajax/jQuery table data after a button click

I have created a jQuery/ajax API call function to read the JSON data and insert it into the HTML table and it works fine, But I want to auto-reload the table da

Jolt transform specification input

i have the following input json: { "tags": { "event": "observation", "source": "hunter" } } The output JSON should look like below: { "tags" : [

Fetching local JSON

How can I fetch a local JSON file that is in my directory? the JSON file looks like this: [ { "name": "Sara", "id": 3232 }, { "name": "Jim

How can I edit this TextField?

I have an Material UI text field which is populated by a nested JSON object pulled from an API. Data can be displayed in either a TextField, a Date Picker, or a

jq replace part of value in json

I need to replace part of a value from a json output. I could easily do this using sed -i however it would also replace other parts of the file I don't want it

Undefined Array Key error when uploading image on php

im new here, hope to grow into this community. I am currently learning php and i am making a program to upload a file. i found a tutorial with some code that ma

How to convert csv To nested Json in java?

i have a csv file in following format A_aa,A_ab,A_ac,A_ad,B_BB_ba,B_BB_BBB_bb 1,2,3,4,5,6 and i want to convert it into following Nested json { 'A':{

Cannot get an advanced stats from IEX Cloud API

Cannot get the advanced-stats from IEX Cloud. Could you please help me to resolve this tackle? Just to clarify, it works for stats, quotes etc. import requests

POST json data (stored as json files in ADLS) to REST endpoint in Azure Data factory

I have a requirement to POST json data (stored as json files in ADLS) to REST API endpoint. I have to use Azure Data factory for this. I have gone through Micr

How to obtain json schema from jsonpaths of all the required fields using java

Say the input is: [{keyname: firstname, path:person.name.firstname,type:string}, {keyname:age, path:person.age,type:number}] Then jsonschema should be generate

How to send JSON format data in postman to django models that have a foreign key to another model?

I have tried to send a POST request to django views.py file using postman. It was working when I sent a POST and GET request to django models that haven't Forei

Elasticsearch: Bulk request throws error in Elasticsearch 6.1.1

I recently upgraded to Elasticsearch version 6.1.1 and now I can't bulk index documents from a JSON file. When I do it inline, it works fine. Here are the conte

JSON error: " Expecting 'STRING', '}', got 'undefined'"

EDIT: I changed the single-quotes to double-quotes and the linters don't complain. I put this into jsonlint.com and I got this error: Error: Parse error on line