You can use something like this
var myObject = {'name':'Kasun', 'address':'columbo','age': '29'}
var count = Object.keys(myObject).length;
console.log(count);
More Related Contents:
- How to change data php to javascript json [closed]
- how to parse json array
- Why does Google prepend while(1); to their JSON responses?
- jQuery AJAX cross domain
- I keep getting “Uncaught SyntaxError: Unexpected token o”
- Unable to access JSON property with “-” dash
- How to check if a string is a valid JSON string?
- How to get JSON from URL in JavaScript?
- JSON find in JavaScript
- Read local XML with JS
- HTML/Javascript: how to access JSON data loaded in a script tag with src set
- How to test if a string is JSON or not?
- Is JSON Hijacking still an issue in modern browsers?
- React JS – Uncaught TypeError: this.props.data.map is not a function
- What’s the difference between Javascript Object and JSON object
- fetch() unexpected end of input
- Object copy using Spread operator actually shallow or deep?
- Loop through JSON object List
- Encoding Javascript Object to Json string
- Iterating through/Parsing JSON Object via JavaScript
- Convert string array to array in javascript
- sort json object in javascript
- jQuery AJAX Call to PHP Script with JSON Return
- console.log(result) prints [object Object]. How do I get result.name? [duplicate]
- Trying to load local JSON file to show data in a html page using JQuery
- Uncaught TypeError: data.push is not a function
- Count console.log objects
- JavaScript/JSON: Get unknown property of an object
- how to convert xml to json using jquery
- How to return an array from an AJAX call?