Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Error when updating item using JSON.stringify #60

@beruken

Description

@beruken

Everything seems to work well with the exception of updating an item. After inspecting the network call it consistently shows "lists/getbytitle('Title of List')/items(undefined)" despite passing what appears to be a valid json object with the Id: int of the item. However, after further inspection (Thanks to your Sandbox in the demo app!!) I found SPRestlib or maybe even SP doesn't like the Key being wrapped in quotes such as {"Id:":1234,"Title":"It Doesn't work"}. However {Id:1234,Title:"It worked"} works fine. Obviously this is a JSON.stringify issue when converting my objects. I can't seem to find any way to force stringify not to quote the key. Any idea how to deal with this?
K

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions