Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
19 views

Static import of JSON object specifying the type

I have a small javascript web-application that I develop on my laptop and is later bundled with webpack for publishing. In some files, some JSON-data is imported right in the "header" of the ...
nhaggen's user avatar
  • 369
0 votes
3 answers
30 views

How can I store the response of my axios get request as json in node.js?

I'm trying to send a request to an api using axios and store the json response in a variable. When I output the response to the console, it shows it, but when setting a variable equal to it and ...
LanSsd Sdftytgk's user avatar
0 votes
0 answers
25 views

Remove backslash from escaped forward slash in a string

I have an array(imageURLS) of string in js. Used 'fetch' to send the array as JSON.stringify(imageURLS) to savedesign.php. The array elements are like ['shop/2.png' , 'shop/3.png']. But each elements ...
zaman's user avatar
  • 29
0 votes
1 answer
34 views

change string to object

how to change string to object {'username': [ErrorDetail(string='A user with that username already exists.', code='unique')], 'email': [ErrorDetail(string='user with this email already exists.', code='...
S.W.A.T verseau's user avatar
-2 votes
0 answers
19 views

how ISODate can be passed in JSON through mongodb helper functions [closed]

I am using JSON and mongodb shell helper functions to generate the report from the UI.I tried to convert the date to String but the Date is defined in MongoDB Database as ISO Date and I am getting ...
Shirisha's user avatar
1 vote
1 answer
57 views

Unable to write JSON schema to validate properties inside an array

I am trying to write JSON schema to validate JSON file with following content: { "number" : "1", "rootProperty": [ { "property1"...
Pranav's user avatar
  • 11
-1 votes
0 answers
31 views

How do I trigger an event on a random second page of a site visit?

I will try my best to articulate this request without getting into specifics since there is sensitive data at play. Language is primarily Javascript with a little JSON, by the way. I have been tasked ...
bwoin's user avatar
  • 11
-2 votes
0 answers
46 views

I got an error when trying to run: Failed to upload image. Please try again. Error: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

This is the js code that I am using to package the json, I use the response.json() packaging method, responseClone variable is required to hold a clone of the response object because the body of a ...
QTM's user avatar
  • 27
-2 votes
0 answers
25 views

Managing Repeated Data: Script Array vs External JSON [closed]

I'm working on a Nuxt project where I have a section with 8 <li> elements, each containing an image, alt text, class, and a link. I want to avoid repetitive code by using a loop to render these ...
Michael's user avatar
  • 319
0 votes
0 answers
11 views

How to get raw json or other data for onecall ticket [closed]

I am trying to get the data that populates the ticket here: https://ia.itic.occinc.com/iarecApp/ticketSearchAndStatusView.jsp?enc=%2B%2FG1BMVDAKGJSwm2QiSowfk5NrkGvXR9ZW9t6AwXqmv0wkQXl%2FZjXxhBxVIJbBZH ...
FinishedManx843's user avatar
-3 votes
0 answers
38 views

Podcast episode update [closed]

I am new to here and web development. I am building my first project and it happens to be a proper website for my podcast. It's been one of my top passion projects as I've always wanted to give my ...
odysseywow's user avatar
1 vote
1 answer
23 views

Using d3.js to submit multiple JSON requests and bind data to different elements

I am building a configuration page that allows a user to reconcile unmatched data by selecting a match from a list of possibilities. The list of items needing to be matched is generated by the backend,...
Carl Peterson's user avatar
0 votes
0 answers
35 views

How to dynamically generate text which is `\u1234` like `\\u{code}` in JavaScript? [duplicate]

I want to dynamically generate JSON (from JavaScript) which contains values like this: ["\u1234", "\u4321", ...] How do I generate that given codes? const letter_a = "a"....
Lance's user avatar
  • 77.9k
1 vote
2 answers
107 views
+50

Passing two parameters (IFormFile and a string) with JSON to C#

Versions: ASP.NET and Web Tools - 17.10.341.11210 C# Tools - 4.10.0-3.24312.19+ JQuery - 3.3.1.js JS - 2.8.3.js I'm trying to pass an IFormFile and a string from a JSON file select and a string input. ...
Kevin Fischer's user avatar
-2 votes
2 answers
42 views

I want to return a key using Lodash when it contains a particular value

I have an object like this: const obj = { 'MONEY-OUT': { USD: ['a', 'b', 'c'], EUR: ['d', 'e', 'f'], }, 'MONEY-IN': { USD: ['g', 'h', 'i'], EUR: ['j', 'k', 'l'], }, }; and I ...
testerJuan's user avatar

15 30 50 per page
1
2 3 4 5
5254