Within the index.js file, the following code is present: 'use strict'; const config = require('./config'); In the config.js file, the code looks like this: 'use strict'; const config = new function() { this.port = 3000; this.redirectUri = "http:// ...
Is it possible to remove the json key in my output file? I am unsure of the best approach to achieve this. I would like to return an array of data with all values, not just one value. If you want more information, here is a link to my N8N post: Manipulate ...
After diving into AJAX and JavaScript, I find myself needing to replace some outdated Angular functionality on our Laravel site. The specific task at hand is creating a live search filter for a page with a static header search bar. The main requirement is ...
I'm completely new to using d3 and struggling with creating a line graph from JSON data. Within my ReportBucketDAO.java file, I am generating JSON output based on my database records. while (rs.next()) { String currency = rs.getString("currency"); ...
After receiving a gRPC response in the form of a Dynamic Message with nested fields, I am attempting to extract the top-level field first and then accessing the nested fields. Here is an example of how the response is structured: field1 { key1: "val ...
Currently, I am faced with the challenge of extracting two pieces of information from a lengthy JSON file using Python 2.7. The structure of the JSON data is as follows: { 'device': [ { 'serial': '00000000762c1d3c', 'registered_id': '01 ...
I'm currently delving into Python and exploring the API for MediaFire to automate some basic tasks. However, I've hit a roadblock after sending a POST request to obtain the Session Token. Extracting the token from the response is where I'm facing confusion ...
While working with an array obtained from a JSON response, I am encountering NaN after performing addition operations. var a = new Array(); var b = 0; var c = 0; alert(b); for (var x = 0; x < length; x++) { a[x] = response.data[x] } for (var i = 0; ...
Currently, I am working on a small project that involves retrieving a list of values from my webservice: @GET @Path("/string") @Produces({"application/xml", "application/json"}) public List<String> test2() { List<String> list = new ArrayLi ...
I am looking for a way to remove the outer node of a JSON using tools within the .NET Framework (C#). Here is an example: { app: { ... } } Is there a method to strip away the outer node so that we are left with only: { ... } PLEASE NO ...
Looking for a solution to pass the generated JSON response from an ASMX web service accessed via AJAX to an outside variable in another function. Below is the code snippet for reference: function setJsonSer() { var strWsUrl = 'htt ...
I have created an external JSON and I am trying to retrieve data from it. The GET request on the JSON is functioning correctly, as I have tested it using Postman. Here is my code: import "./Feedback.css"; import { useState, useEffect } from " ...
Currently, I am setting up REST calls from Spring to my local camunda instance using the camunda rest api. This is how I've configured it: I have launched a local camunda docker container on localhost:8080 following this link: (I have verified t ...
I am facing an issue while passing a JSON object to my MVC controller action via POST. Although the controller action is being called, some elements of the object are showing up as NULL. Specifically, the 'ArticleKey' element is present but the 'MeasureDef ...
I am currently developing an application that requires data sharing with a windows server. After researching various examples online, I have come up with the following implementation below. Although both the iOS code and web-service are functioning properl ...
My attempt to save application settings data in JSON format for easy readability and retrieval is not going as planned. I am encountering an error while trying to reassign the values of lists stored in a ListDictionary. The strategy involves organizing di ...
I'm looking for guidance on how to insert an array from a PHP MySQL page into a separate JavaScript file. Can someone please help me with indicating where to include the PHP URL and provide the correct format for the PHP array code in order to achieve ...
For my project, I am fetching JSON data from a public database through the URI , and this dataset contains up to 445454 rows. The code snippet below outlines how I'm constructing the JSON object for this extensive dataset. HttpGet get = new HttpGet(uri ...
Just starting with JavaScript and struggling to solve this problem. I attempted using map and filter but couldn't quite implement the if condition correctly. How can I find the records in the given array that have a gender of 0 and color is red? let s ...
My Inquiry I've been pondering whether it's possible to include all the necessary devDependencies within the package.json file generated by running npm init in the Terminal for Gulp projects. Can these dependencies be pre-listed in the file instead of hav ...
I've been working on creating a basic "search" box using Javascript, AJAX, PHP, and JSON. I'm focusing on the "world" database that I downloaded from the MySQL website for this particular project. I've hit a roadblock when trying to retrieve ...
After spending numerous hours researching potential solutions, I still can't seem to fix the issue at hand. Admittedly, I am fairly new to PHP, so it's possible that I am overlooking a small detail. The problem lies in the fact that I have a form within my ...
I'm in the process of developing an application that will showcase job details within a modal window based on the selected template. To achieve this, I've integrated ui.bootstrap and ui.router. However, I'm encountering difficulties in displ ...
Is there a more efficient way to load a JSON file into a JSONObject? Currently, I am utilizing json-lib for this task. Here is my current approach which results in an exception being thrown: XMLSerializer xml = new XMLSerializer(); JSON json = xml.readF ...
I'm currently working on developing a shiny app that can load and display data from a .json file in a table format. I've attempted to import the data and present it using DataTable along with the fromJson function from Json Lite. options(shiny ...
I'm currently fetching Json data from a .json webpage using an HttpResponse in Java. The code snippet String Json = EntityUtils.toString(response.getEntity()) is then used to store the Json data as a String. Unfortunately, this process alters the format o ...
Here's a structure that I am working with: [{ "name": "apple", "price": "5.0", "record": [ { "id": "008", "time": 1465689600 } ] },{ "name": "banana", "price": "9.0", "record": [ ...
My current project involves converting a JSON file to a PDF using mPDF. However, I'm encountering an issue where the JSON table is not being displayed in the HTML after running the PHP code. Instead, only one empty PDF page is generated. UPDATE: I have ma ...
I am encountering an issue with posting an array as a JavaScript variable {{0,0},{1,1},{2,2}} using JSON.Stringify. Whenever I try to post it, I receive an internal server error 500. Can someone please advise on how I can successfully post and utilize this ...
Greetings! I have a section of JSON data that requires parsing, and I have condensed it for better visibility. [ { "trends": [ { "name": "#CyberMonday", "url": "https://twitter.com" }, { "name": "#Bl ...
I am wondering if there is a way to stream Json in my API response. After learning how to read and write a json file using the Jackson library from this example: Now, in the Play Framework, I want to know how I can stream my response or essentially retur ...
I am encountering a frustrating issue with a JSON parse error. I can't seem to determine whether the web service is faulty or if there's an issue with my fetch code. When testing the web service on Postman, it returns two objects. However, whenev ...
What is the correct way to access them if item.NestObj.textpropertyVal is showing incorrect? success: function(data){ var html = ""; $.each(data.mainOutterObj, function (index, item) { html += "<ul&g ...
I am attempting to transfer JSON data from an HTML form to a PHP server using the POST method. The issue I am encountering is that my code always ends up in the fail block within the callback function. Despite this, the Firebug console (ctrl+shift+J) does ...
It has been quite challenging to find information on this topic, as most inquiries involve incorrectly serialized objects. I am attempting to send a string, not an object. Here is the request right before it is sent off. The payload can be properly handle ...
Currently, I am utilizing PostgreSQL 9.5 and have a table containing JSON arrays with JSON objects structured like so: [] [{animal:cat}, {plant:sunflower}, {car:mercedes}] [{animal:dog}] [{animal:dog}, {car:audi}] [] The goal is to present a table that m ...
Upon receiving x number of projects and their corresponding directory structure from the server in a single AJAX call, the connection is disconnected from the server. Subsequently, all operations must be carried out from the browser. After loading the pro ...
I've been attempting to utilize JSON.stringify in order to format my json object for better readability. However, it doesn't seem to be working as expected. Can someone please offer assistance in identifying what I might have done incorrectly? ...
Can anyone help me with an issue I'm facing? When I deserialize a JSON object and bind it to my properties, the properties show null values. Here is my code: string s = "{\"response\":{\"status\":\"fail\",\"content& ...
I am facing an issue with the input field on my website. Users can enter their desired input, and this data is copied into a hidden input field. However, the problem arises when new data replaces the old data. This is where I copy all the data: $('# ...
Programming Environment: ASP.NET, jQuery Below is the AJAX call I am using: var tempVar = JSON.stringify({plotID:currentId}); $.ajax({ type: "POST", url: "testPage.aspx/getPlotConfig", data: tempVar, contentType: ...
My current setup involves a PHP file that uses cURL to return data to the client. Recently, I made changes on the client side to handle JSON responses instead of HTML, which resolved some issues. However, now I am interested in returning the data as a JSON ...
Recently, I started learning AngularJS and have been struggling to fetch JSON data from a factory. The error message I keep getting is not very helpful: TypeError: Cannot read property '1' of null This is the module I am working with: var app = angular. ...
I have a JSON array that I need to modify by adding a new key. Here is the current structure: stdClass Object ( [set] => Array ( [0] => stdClass Object ( [name] => agenda ...
Having an issue with displaying tasks from a MongoDB project schema in HTML. The tasks are stored in a nested array and I want to show the task name and description. Here's the code: <div class="card-body"> {{project.taskName | json}} </ ...
I am working with JSON data that looks like this: [ { "Title": "PAGE A", "Users": "USRA" }, { "Title": "PAGE B", "Users": "USRA,USRB" } ] What is the most efficient method to convert the fields containing " ...
Recently, I received a JSON file that looks something like this: [ { "symbol": "A", "name": "Agilent Technologies Inc", "exchange": "NYSE", }, { "symbol": "AAC ...
I am looking to dynamically populate a jQuery datatable with different sets of data based on the request parameter. I have received the object JSON response, but I'm encountering an error when trying to bind it to the datatable. DataTables warning: t ...
Imagine we have a basic table, id - user identification rooms - JSON type indicating the number of rooms the user is looking for. id rooms 1 ["3.0","4.0"] 2 ["3.0"] 3 ["1.0"] If I want to filter users searching for 3 rooms, how can I do that? I am aw ...
When utilizing the Reddit api, I have found a way to retrieve the json of a page. I have successfully done this for the front page, but now I am wondering how to obtain the json for the third page without navigating through the second page. Is there a met ...
Looking to create a dynamic contact list that can be sorted using AJAX. When selecting one of the 3 menu options, a new list with updated information should be displayed. I've been doing some research but haven't come across useful information o ...
I currently have a script that retrieves an array from an API URL. <?php $url = 'https://api.example.com/v1/w'; $data = file_get_contents($url); $data = json ...
Having trouble with Rails 4 responding to an angular resource.get request with HTML instead of JSON. The code snippet for the javascript is as follows: $resource("/questions/:id", {id: "@id"}}.get({id: 16}); The server error occurs because it cannot loc ...
Can someone please guide me on how to generate nested JSON data using MySQL and PHP in Codeigniter? I am looking to structure my data in the specific format shown below. $data = { 'India': { 'Andhra Pradesh': ['Vijay ...
Currently, I have a dataframe with a column named test_col that contains JSON structures. The data within the lineItemPromotions object can be quite complex, with nested JSONs and varying numbers of items. My goal is to unnest these structures in order to ...
I recently started working with APIs and my current project involves using the Petfinder API v2 to develop a website that allows users to search for adoptable animals. The API utilizes OAuth, requiring a key and secret to obtain a token via CURL. However, ...
I encountered a problem while developing a basic app using ASP.NET MVC 5. The issue arose when I attempted to convert JSON into an entity. Below is the code snippet: Entity public class PlayListViewModel { public PlayListViewModel() { Track ...
I am currently developing a solution where the web server, specifically using node with express, will utilize the request package to retrieve data from a web API. Upon receiving the data (which may include validation error status codes), it needs to be com ...
I am trying to extract data from a .geojson file but faced some challenges while attempting two different methods: const geojson = require('../../assets/mygeojson.geojson'); The first method resulted in an error message stating: Module parse failed: Une ...
I am having trouble accessing the actual values of the data in my table, as all I can see is the dates in the JSON output generated. The specific link I am using is: "http://api.scb.se/OV0104/v1/doris/en/ssd/START/FM/FM5001/FM5001A/FM5001SDDSPM" ...
Being a novice in angular, I am experimenting with fetching data from an external API. Although I managed to retrieve the data successfully on the console, I encountered errors when attempting to display it on the screen. Below are the details of my setup: ...
To efficiently extract all Post Titles from a JSON API, I am utilizing another JSON API of users to further retrieve the count of comments for each Post. Here are the APIs being used: API for USERS: http://jsonplaceholder.typicode.com/users API for POSTS ...
Looking to incorporate some jquery.gantt and it requires data in JSON format. The documentation can be found at () Here is the jQuery code snippet: $(".gantt").gantt({ source: basePath + "system/print_gantt_project_data.php?project_id=" + pro ...
Whenever I try to register on my page and connect it to the database, I encounter an error after pressing the sign-in button... "Uncaught (in promise) TypeError: Converting circular structure to JSON --> starting at object with constructor 'HTM ...
I'm trying to update specific fields in my form after fetching data from a database using AJAX and JSON. Here is the code snippet: In my form: <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'anagrafica- ...
I've been working on a cryptocurrency app using React and a JSON API to fetch the latest data. My approach involves using fetch to load the JSON API and setInterval to refresh the app every 10 seconds. Now, I'm wondering if there's a way to compare the pr ...
I've made a request using awc::client that has responded with a Result - body. How can I extract elements from this result? let response = client.post("http://localhost:8002/trace_route") .send_json(&request) .await; ...
I have extracted a series of elements from an excel datarow: 'Ars','Cr','Assl','Burg','Consp' My goal is to organize them into a nested dictionary as shown below: data_dict.update({'name':'Ars','children':[{ 'name':'Cr','children':[ ...
I am looking to develop a Jenkins dashboard using AngularJS. I am considering combining data from three different API calls to create an object that can be used in the HTML file with ng-repeat, but I'm not sure if this is the best approach. The desir ...
What is the method to extract the last tab from a given JSON code? { "claimed_levels": { "level_1", "level_2" } } I want to display the level when someone types "!levels". The desired output format should be: Your current level is "2" ...
I am currently working with a Ruby server that is continuously reading from a flat file which gets updated every second by another server. This flat file is in JSON format, and I want the server to only read the new data instead of parsing the entire fil ...
Is it necessary to load a couchDB JSON document to the client first and then post it to another couchdb database in order to copy it from one db to another? Or is there a server-side method that can achieve this? Reference The copy command is non-standar ...
In my attempts, I have tested the following methods individually: Please note: The variable "url" contains an HTTPS URL and "jsonString" contains a valid JSON string. var request = new XMLHttpRequest(); try{ request.open("POST", url); request.set ...
Here is the json data: var data = [ { "name": "wiredep", "version": "4.0.0", "link": "https://github.com/taptapship/wiredep", "lice ...
Here is the code snippet I am working with: String json = request.excutePost("http://192.168.1.42:3000/login_client",urlParameters); JSONObject jsonObj = new JSONObject(json); The error displayed in logCat is as follows: org.json.JSONException: Value ...