logo
search
SharePoint Document Issues

How to Fix [Object Object] in SharePoint Lookup Fields

Maira MehtabMaira Mehtab Sep 27, 2026 869 views

Question details

Users need to resolve an issue where custom JSON formatting causes lookup fields to display as '[object Object]' instead of the actual data value.

Product
SharePoint / Microsoft Lists
Device & OS
not provided
Scenario
Applying JSON formatting to a SharePoint list view, card, or column that contains a lookup data field.
Observed behavior
The lookup field incorrectly renders the literal string '[object Object]' on the screen rather than displaying the expected text value.
Before you start

Before modifying your list configuration, ensure you have sufficient permissions to edit column formatting in your SharePoint environment and copy your existing JSON code to a safe place.

Solution 1Recommended

Update JSON Formatting Property References

Adjust your JSON code to extract the specific text value from the lookup object rather than referencing the entire object itself.

In SharePoint and Microsoft Lists, lookup fields are complex field types. When you reference a lookup column directly in JSON (e.g., [$LookupColumn]), SharePoint returns the entire data object. Because the browser cannot display the object directly as text, it outputs '[object Object]'. To fix this, you must append a sub-property to your column reference.

1
Access Column Settings

Navigate to your SharePoint list, click the column header for the affected lookup field, select 'Column settings', and click 'Format this column'.

2
Open Advanced Mode

In the formatting pane on the right side of the screen, click on 'Advanced mode' at the bottom to view the raw JSON code.

3
Append Lookup Sub-Property

Locate the reference to your lookup field (for example, '[$YourColumnName]') and append '.lookupValue' to it so that it reads '[$YourColumnName.lookupValue]'.

4
Save and Verify

Click 'Save' at the bottom of the pane. The list should immediately update to display the actual text string instead of the object error.

Using Lookup IDs: If your JSON formatting requires the numeric ID of the lookup item rather than the display text (for example, when constructing custom URLs), use '[$YourColumnName.lookupId]' instead.
Free Microsoft Office alternative

Manage Data Easily with WPS Office Spreadsheets

If complex SharePoint JSON formatting is slowing you down, try managing your data with WPS Spreadsheets. It provides a familiar, code-free environment for data lookups and validation while maintaining full compatibility with Microsoft Office formats.

  1. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Open Spreadsheets: Launch WPS Office and select 'Spreadsheets' to create a new data tracking workbook.
  3. 3. Set Up Data Validation: Navigate to the 'Data' tab and use the 'Data Validation' tool to quickly create lookup dropdown lists visually, bypassing the need for manual coding.
Fully compatible with Microsoft Excel (.xlsx, .xls) and CSV formats without data loss.Create data lookups and dropdowns easily without writing any complex JSON code.Lightweight, fast, and completely free alternative to the Microsoft Office suite.Familiar user interface ensuring a seamless migration and minimal learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does SharePoint display [object Object] in my list?

This happens when custom JSON formatting attempts to render a complex data type, such as a lookup, person, or location field, directly as plain text. The system outputs the standard JavaScript representation of an object instead of its underlying value.

How do I access the text value of a SharePoint lookup field in JSON?

You can access the readable display text by appending '.lookupValue' to the internal column name reference in your JSON code, formatting it as [$YourColumnName.lookupValue].

Does this issue affect Microsoft Lists as well?

Yes. Because Microsoft Lists is built on top of the SharePoint platform infrastructure, the exact same JSON formatting rules and [object Object] display errors apply to lookup fields in Lists.

How can I fix the [object Object] error for a Person or Group field?

Similar to lookup fields, Person fields return objects. To display the person's name in JSON formatting, you must append '.title' to the column reference, such as [$PersonColumn.title].