I'm inserting new document to MongoDB as following:

    apiHost: "logbasex.github.io",
    apiUrl: "20221",
    contentType: "Blog",
    headers: "",
    jsonPath: {
        "items": {
            "path": "arts",
            "name": "item",
            "type": "ArrayObject"
    parameters: ""})

And after insert this document, I double-check the database to make sure the JSON field is well-defined, but there is something wrong:

{"items": {"path": "arts", "name": "item", "type": "ArrayObject"}}

All tabs and line-breaks were disappeared. I don't know why. Is there any solution? Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.