I converted a CAML query to REST and one of the fields that displayed the data using CAML now appears as [object Object] when using REST. Why and how to correct.


  • Please post the script to understand it.
    – Hardik
    Jun 2, 2016 at 18:32

1 Answer 1


Your REST result is an Object (either JSON or XML) so if you display that using JavaScript it is displayed as [object Object]

You have to convert the Object to a String

JSON.stringify( yourRESTobject )

or display it in the F12 DEV console

console.dir( yourRESTobject );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.