Skip navigation

Test for an empty object

Test for an empty object: Processing and Interchanging JSON Data
Test for an empty object: Processing and Interchanging JSON Data

Because an empty object is truthy, you need a different test to determine whether you've got an empty object. In this video, the instructor constructs a test to check for an empty object before code runs to parse an object into JSON. Plus, see how to check an for empty JSON string, and then map out when each test should be run for maximum performance.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 27m
Duration
23,807
Views
Show More Show Less
Skills covered in this course
Web Web Development

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month