All Questions
33
questions
0
votes
2
answers
742
views
How to dynamically handle changes in a JSON object name that may change regularly, when building C# class to deserialize the JSON? [closed]
my predicament is that I have to deserialize some JSON files provided by my company's software eng department, for me to use in a production environment, however some revisions of the JSON files have ...
2
votes
2
answers
1k
views
Filter object in array that is missing keys/properties - React
How I can filter the object in array that is missing some keys. Here is the explanation:
For example, I have a array of objects:
const array = [
{
a: 1,
b: 2,
c: 3,
d: 4
},
{
b: 6,...
0
votes
2
answers
355
views
How to get object property dynamically using a custom function
I have a funciton that accept a property name
func(propertyName) {
return object[propertyName];
}
so by calling func('value') will return the object.value
However the object is complex, so it has ...
1
vote
2
answers
248
views
Unable to access JavaScript Object property from CSV file
I am having a hard time figuring out how to access a property of my javascript object.
I have a Node JS application that downloads a CSV file from the WHO with covid data and then I loop through each ...
0
votes
1
answer
297
views
create a variable from geojson properties keys
i have a geojson file using into an html map.
i need to create a var from some properties of this geojson and use it with javascript.
my geojson is like the one below, I have saved it in .js type and ...
1
vote
1
answer
30
views
How can i access the multibrands.legKey property of this json object
In the given Json array object I want to access the property Multibrands.Legkey
can someone help me to access the property Multibrands.Legkey. I tried various methods but I am clueless in doing this....
2
votes
1
answer
594
views
Is there a way to generate @jsonignore annotation for schema generated via avro?
Suppose I generate a domain object with several properties.I want to generate @jsonignore annotation for one of the object properties in the class defn.
1
vote
1
answer
1k
views
Deserialize JSON object which has property name as number into a object in VB.NET
I have below JSON object
myvalues : {
0 : "value0",
1 : "value1",
2 : "value2",
3 : "value3"
}
I want to bind this JSON object into a vb.net class object as an input to a WCF ...
2
votes
4
answers
551
views
Get the object with more properties from an array of objects
Assuming I have the following array in a JSON file:
[
{ id: 1 },
{ name: 'foo' },
{ id: 3, name: 'foo', nick: 'bar' },
{ id: 4, nick: 'next' },
{ nick: 'nextnext' }
]
How to get ...
-1
votes
1
answer
43
views
Add new properties to object in javascript not work proper?
Hi I'm getting stuck with one problem that seem so easy :
I want to add new properties to an existing object, but it's not work proper
here my code :
challengeSearchNearBy: async function (...
0
votes
2
answers
623
views
Trying to get property of non-object, but it is an object
I try to get a property of an object.
function page($json, $name) {
$data = json_decode($json);
//$0 = '0';
$cSKU = '574294403';
var_dump($data->variations->$cSKU->...
-2
votes
1
answer
53
views
Can't reference proprety name with '-' Nodejs
This is the output when I console.log my object using console.log(category).
{ _id: 5b723aa57bab2a0b9a0d1429,
updatedBy: 5b62743ac154c5669e9259d0,
updatedAt: 2018-08-14T09:25:20.050Z,
createdBy: ...
1
vote
1
answer
6k
views
Delete JSON object properties with JavaScript in Karate
How do I delete JSON object properties dynamically? I tried this:
* def delKey =
"""
function(json, key) {
delete ...
2
votes
3
answers
357
views
Creating deep-nested objects in Javascript
When loading JSON from a server, I need to create objects. The objects do not always exist beforehand.Therefore I have to check that each level exists before adding a new level. Is there a better way ...
-1
votes
1
answer
259
views
What is object.keys
I remember that object.keys return keys of the object. In my code I expect it to return the strings that hold the questions in the questions array of objects. Instead it returns the array of possible ...