Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Entwicklung
  4. Array in state speichern

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.3k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.6k

Array in state speichern

Scheduled Pinned Locked Moved Entwicklung
21 Posts 6 Posters 4.7k Views 2 Watching
  • 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.
  • paul53P paul53

    @klassisch sagte: Das habe ich jetzt nicht ganz verstanden

    var myArray = [1,11,22,33,44,55];
    log('Text ' + myArray);
    log('JSON ' + JSON.stringify(myArray));
    log(myArray);
    

    Unterschiede:

    16:27:45.930	info	javascript.1 (2109) script.js.common.Neuer_Test: Text 1,11,22,33,44,55
    16:27:45.931	info	javascript.1 (2109) script.js.common.Neuer_Test: JSON [1,11,22,33,44,55]
    16:27:45.931	info	javascript.1 (2109) script.js.common.Neuer_Test: [1,11,22,33,44,55]
    

    Noch krasser bei einem Objekt:

    16:31:37.582	info	javascript.1 (2109) script.js.common.Neuer_Test: Text [object Object]
    16:31:37.582	info	javascript.1 (2109) script.js.common.Neuer_Test: JSON {"a":11,"b":22}
    16:31:37.582	info	javascript.1 (2109) script.js.common.Neuer_Test: {'a':11,'b':22}
    
    K Offline
    K Offline
    klassisch
    Most Active
    wrote on last edited by
    #21

    @paul53 Ah. jetzt, vielen Dank!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Support us

    ioBroker
    Community Adapters
    Donate

    539

    Online

    32.5k

    Users

    81.7k

    Topics

    1.3m

    Posts
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Home
    • Recent
    • Tags
    • Unread 0
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe