9

Before you start pulling the code down for an API and debugging why a POST to it isn't persisting in SQL, verify your JSON is well-formed... 😒

That missing squiggly brace at the top is a buzzkill.

Comments
  • 0
    How?? I mean aren't you using JSON.stringify? You
  • 0
    @fuckinghipsters It was a test of request/response/post involving copying the request-response making a small alteration and posting the object.

    I accidentally missed the first brace but the error I got back didn't indicate anything was wrong. My only evidence of failure was the lack of changes persisting in SQL.
Add Comment