Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chester Campbell 98 posts 209 karma points
    Mar 05, 2021 @ 21:12
    Chester Campbell
    0

    CMSImport.DataProviders.JSON -- allow array of strings for mapping MNTP properties

    When using the JSON DataProvider and importing a csv string that is going to be mapped to an Umbraco.MultiNodeTreePicker property you have to format the JSON like this:

    {
        "Authors": "Jane Eyre,Charles Dickens,Virginia Woolf,George Orwell"
    }
    

    It would be wonderful if the JSON could be formatted like an array. Like this:

    {
        "Authors": [
            "Jane Eyre",
            "Charles Dickens",
            "Virginia Woolf",
            "George Orwell"
        ]
    }
    

    If I'm generating the JSON via code having the array of strings is much more natural than having a csv string as a property value.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft