All Questions
Tagged with javascript json
78,803
questions
0
votes
0
answers
16
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 ...
0
votes
3
answers
26
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 ...
0
votes
0
answers
24
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 ...
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='...
-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 ...
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"...
-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 ...
-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 ...
-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 ...
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
...
-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 ...
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,...
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"....
1
vote
2
answers
95
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.
...
-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 ...