Top "Object" questions

An object is any entity that can be manipulated by commands in a programming language.

String to object in JS

I have a string as string = "firstName:name1, lastName:last1"; now I need one object obj such that obj = {firstName:…

javascript string object
PHP Fatal error: Using $this when not in object context

I've got a problem: I'm writing a new WebApp without a Framework. In my index.php I'm using: require_once(…

php function class object fatal-error
JavaScript object: access variable property by name as string

If I have a javascript object that looks like below var columns = { left: true, center : false, right : false } and I …

javascript object
access key and value of object using *ngFor

I am a bit confused about how to get the key and value of an object in angular2 while using *…

angular typescript object
Inconsistent Accessibility: Parameter type is less accessible than method

I'm trying to pass an object (a reference to the currently logged on user, basically) between two forms. At the …

c# object
What is the JavaScript equivalent of var_dump or print_r in PHP?

I would like to see the structure of object in JavaScript (for debugging). Is there anything similar to var_dump …

javascript object dump var-dump
Python dictionary from an object's fields

Do you know if there is a built-in function to build a dictionary from an arbitrary object? I'd like to …

python dictionary attributes object metaprogramming
Converting Java objects to JSON with Jackson

I want my JSON to look like this: { "information": [{ "timestamp": "xxxx", "feature": "xxxx", "ean": 1234, "data": "xxxx" }, { "timestamp": "yyy", "feature": "yyy", "…

java json object jackson
JavaScript: filter() for Objects

ECMAScript 5 has the filter() prototype for Array types, but not Object types, if I understand correctly. How would I implement …

javascript jquery object filtering
Creating a list of objects in Python

I'm trying to create a Python script that opens several databases and compares their contents. In the process of creating …

python list object loops