Top "Object" questions

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

Saving an Object (Data persistence)

I've created an object like this: company1.name = 'banana' company1.value = 40 I would like to save this object. How can …

python object serialization save pickle
Javascript "Not a Constructor" Exception while creating objects

I am defining an object like this: function Project(Attributes, ProjectWidth, ProjectHeight) { this.ProjectHeight = ProjectHeight; this.ProjectWidth = ProjectWidth; this.ProjectScale = …

javascript object constructor typeerror
Convert any object to a byte[]

I am writing a prototype TCP connection and I am having some trouble homogenizing the data to be sent. At …

c# .net object byte
How do I count a JavaScript object's attributes?

Suppose I have the following object in JavaScript: var object = { "key1": "value1", "key2": "value2", "key3": "value3" }; How do I find …

javascript object
Does JavaScript guarantee object property order?

If I create an object like this: var obj = {}; obj.prop1 = "Foo"; obj.prop2 = "Bar"; Will the resulting object always …

javascript object
Remove array element based on object property

I have an array of objects like so: var myArray = [ {field: 'id', operator: 'eq', value: id}, {field: 'cStatus', operator: 'eq', …

javascript jquery arrays object properties
Encoding Javascript Object to Json string

I want to encode a Javascript object into a JSON string and I am having considerable difficulties. The Object looks …

javascript object json javascript-objects
Javascript reduce() on Object

There is nice Array method reduce() to get one value from the Array. Example: [0,1,2,3,4].reduce(function(previousValue, currentValue, index, array){ …

javascript arrays object reduce
How to display all methods of an object?

I want to know how to list all methods available for an object like for example: alert(show_all_methods(…

javascript object methods
PHP - warning - Undefined property: stdClass - fix?

I get this warning in my error logs and wanted to know how to correct this issues in my code. …

php object warnings