Use Coupon code WELCOME20 and get 20% off your first purchase!

JSON export converts objects to strings

Bugs
  • A
    Adam Rademacher 10 months ago

    The JSON exported by a project currently exports object structures into strings, which escapes all& of the internal quotation marks and makes it difficult to work with.

    Example export text:

    {
    "name": "Export Test",
    "elements": "{\"levels\": {\"byId\": {\"0\": {\"id\": 0, \"name\": \"Root\", \"type\": \"container\", \"children\": [1]}, \"1\": {\"id\": 1, \"name\": \"Main Board\", \"type\": \"item\", \"elements\": [1]}}, \"allIds\": [0, 1]}, \"elements\": {\"byId\": {\"1\": {\"x\": 10062, \"y\": 10173, \"id\": 1, \"theme\": \"default\", \"title\": \"Intro Dialog<br>\", \"width\": 300, \"height\": 220, \"content\": \"~Intro soliloquoy text by main character~\", \"components\": [1], \"linkedLevel\": null}}, \"allIds\": [1]}, \"connections\": []}",
    "components": "{\"components\": {\"byId\": {\"0\": {\"id\": 0, \"name\": \"Root\", \"type\": \"container\", \"children\": [1]}, \"1\": {\"id\": 1, \"name\": \"Main Character\", \"type\": \"item\", \"attributes\": []}}, \"allIds\": [0, 1]}}",
    "url_hash": "M4Olz8e6qP"
    }

    With proper JSON formatting:

    {
    "name": "Export Test",
    "elements": {
    "levels": {
    "byId": {
    "0": {
    "id": 0,
    "name": "Root",
    "type": "container",
    "children": [
    1
    ]
    },
    "1": {
    "id": 1,
    "name": "Main Board",
    "type": "item",
    "elements": [
    1
    ]
    }
    },
    "allIds": [
    0,
    1
    ]
    },
    "elements": {
    "byId": {
    "1": {
    "x": 10062,
    "y": 10173,
    "id": 1,
    "theme": "default",
    "title": "Intro Dialog<br>",
    "width": 300,
    "height": 220,
    "content": "~Intro soliloquoy text by main character~",
    "components": [
    1
    ],
    "linkedLevel": null
    }
    },
    "allIds": [
    1
    ]
    },
    "connections": []
    },
    "components": {
    "components": {
    "byId": {
    "0": {
    "id": 0,
    "name": "Root",
    "type": "container",
    "children": [
    1
    ]
    },
    "1": {
    "id": 1,
    "name": "Main Character",
    "type": "item",
    "attributes": []
    }
    },
    "allIds": [
    0,
    1
    ]
    }
    },
    "url_hash": "M4Olz8e6qP"
    }
  • Manos Kalaitzoglou 10 months ago

    Thanks for noticing this Adam, we will add it to our backlog for the next update

  • Manos Kalaitzoglou 9 months ago

    Hi Adam, 

    We have improved the JSON export. Thanks for your feedback!

    https://arcweave.com/forum/discussion/news/version-073-update

Please login or register to leave a response.