We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49132
    • 7 Posts
    There is content of my field in database

    {"durationDiscount":[ {"minDays":12,"discount":4},{"minDays":20,"discount":6} ],"periods": [  {"name":"first","from":"20.03","to":"3.04","price":400,"discount":1},{"name":"second","from":"11.04","to":"4.05","price":600,"discount":0} ] }


    and there is how it looks on a page when I call [[+pricing]]

    {"durationDiscount":{{{{{ {"minDays":12,"discount":4},{"minDays":20,"discount":6} }}}}},"periods": {{{{{  {"name":"first","from":"20.03","to":"3.04","price":400,"discount":1},{"name":"second","from":"11.04","to":"4.05","price":600,"discount":0} }}}}} }


    Every square array bracket got replaced with 5 (!!!) curly brackets. WHY??? How can I get out of this? Thx
      • 37377
      • 64 Posts
      culd | steffan Reply #2, 11 years ago
      That's strange. I've copied your JSON string into my database and when I call it it shows exactly the same as in the database. How are you storing and retrieving your data?