Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

`object` ("[object Object]") cannot be serialized as JSON. Please only return JSON serializable data types

return {
        props: {
            startingID: String(returnID),
            startingError: error,
            startingPosts: JSON.parse(JSON.stringify(posts)),
        }
    }
 
PREVIOUS NEXT
Tagged: #serialized #Please #return #JSON #serializable #data #types
ADD COMMENT
Topic
Name
1+4 =