sponsored links

Collapse

Announcement

Collapse
No announcement yet.

HTTP job won't end

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by Scott Klement View Post
    FWIW, status code 4 means that you tried to generate more JSON after the document was complete. This isn't allowed by JSON spec, so the generator will send that error and refuse to create the element.
    That's more helpful. Thanks.

    Comment


    • #17
      Originally posted by Scott Klement View Post
      FWIW, status code 4 means that you tried to generate more JSON after the document was complete. This isn't allowed by JSON spec, so the generator will send that error and refuse to create the element.
      Scott,

      To be clear, does this mean that the program tried to start a new json object/array/element after yajl_genClose() is called, or after you close the original JSON object (ie, the final } or ])?

      PS - I accidentally found out I can edit other people's posts. may be a BB setting?

      Comment


      • #18
        No, not after yajl_genClose().. that would be a different error, because there's no generator in that case to even call the YAJL routines under.


        This is a valid JSON document:

        Code:
        {
           "field": "value",
           "another": "another value"
        }
        You'd generate this with beginObject, addChar, addChar, endObject.

        Now imagine you tried to add an an additional field after the endObject... you can't, it's not possible.

        Comment

        sponsored links

        Collapse

        Working...
        X