User Tools

Site Tools


vba:cast:json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vba:cast:json [19.04.2017 11:50:18]
yaslaw [json2obj]
vba:cast:json [16.01.2020 08:44:37] (current)
yaslaw
Line 1: Line 1:
 <​const>​ <​const>​
-    version=2.1.1 +    version=2.9.1 
-    vdate=13.02.2017+    vdate=16.01.2020
     fname=lib_json.bas     fname=lib_json.bas
     ns=%NAMESPACE%     ns=%NAMESPACE%
Line 12: Line 12:
 ==Version %%version%% %%vdate%%== ==Version %%version%% %%vdate%%==
  
-<​WRAP ​center ​round download>​ +<WRAP round download ​50%> 
-{{%%fname%%|Download %%fname%% (V-%%version%%)}} +><fc #​808080>//​Das Modul hat versteckte Attribute. Damit diese aktiv übernommen werden reicht es nicht aus, den Code in ein neues Modul zu kopieren. Man muss das Modul aus der Datei nach VBA importieren.//</​fc>​ 
-</​WRAP>​+>​{{popup>:​vba:​vba_importfile.png|Bild zum Import}} 
 + 
 +{{%%fname%%|Download %%fname%% (V-%%version%%)}}</​WRAP>​
  
 Für mehrere Projekte brauche ich JSON. Ich arbeitete bisher mit [[ http://​www.ediy.co.nz/​vbjson-json-parser-library-in-vb6-xidc55680.html|VB-JSON]]. Aber irgendwie störte es mich, dafür jeweils 2 Klassen und ein Modul zu kopieren. Für mehrere Projekte brauche ich JSON. Ich arbeitete bisher mit [[ http://​www.ediy.co.nz/​vbjson-json-parser-library-in-vb6-xidc55680.html|VB-JSON]]. Aber irgendwie störte es mich, dafür jeweils 2 Klassen und ein Modul zu kopieren.
Line 261: Line 263:
     [1] => <​String>​ '​True'​     [1] => <​String>​ '​True'​
     [2] => <​String>​ '​12.3'​     [2] => <​String>​ '​12.3'​
-)+)</​code>​ 
 + 
 +=== 7) Leere Listen erstellen === 
 +<code vb>​print_r json2obj(null) 
 +<​Empty>​  
 + 
 +print_r json2obj(null,​jrtEmptyList) 
 +<​Variant()> ​ () 
 + 
 +print_r json2obj(empty,​jrtEmptyList) 
 +<​Variant()> ​ () 
 + 
 +print_r json2obj("​[1]",​jrtEmptyList) 
 +<​Variant()> ​ ( 
 +    [0] => <​Byte>​ 1 
 +)</​code>​
  
  
vba/cast/json.1492595418.txt.gz · Last modified: 19.04.2017 11:50:18 by yaslaw