MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Modules again.....

    Scheduled Pinned Locked Moved Development
    modulemodulessmartmirrorsmart mirrorcodingcodequotes
    11 Posts 5 Posters 5.3k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • idoodlerI Offline
      idoodler Module Developer @sdetweil
      last edited by

      @sdetweil Actualy JSON requires quotation of the key and of the value (if the value is a string)

      Example of a JSON file:

      {
          "string": "This is a string",
          "bool": true,
          "int", 1,
          "float": 3.14,
          "arrayOfStrings": [
              "string1",
              "string2"
          ],
          "arrayOfInts": [
              1,
              2
          ]
      }
      

      The same can be used in a Javascript file, but as an object. You can also throw away the quotation of the keys.

      1 Reply Last reply Reply Quote 0
      • 1
      • 2
      • 2 / 2
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy