Draco

possible error: when using JSONSetElement ()

Discussion created by Draco on Mar 11, 2018
Latest reply on Mar 11, 2018 by bigtom

Hi,...

 

Product and version : FileMaker Pro 16.0.5)

OS and version         : macOS 10.13.3

Hardware                  : MacBook Pro (Retina, 15-inch, Mid 2014

Description               :

.....................................................................................................

Set Variable [ $cod    ; value : GetValue ( $JSON ; 1 ) ]

Set Variable [ $name ; value : GetValue ( $JSON ; 2 ) ]

 

Set Variable [ $$indice ; Value ; JSONSetElement ( $$indice ; "Flag_"   & $cod ; $cod     ; JSONString ]

Set Variable [ $$indice ; Value ; JSONSetElement ( $$indice ; "Name_" & $cod ; $name  ; JSONString ]

 

RESULT :

{

"Flag_c1" : "c1",

"Name_c1" : "carbon"

}

.....................................................................................................

<<  If I change Flag_  to  FLAG_   and  Name_   to   NAME_ , ... both values appear >>

.....................................................................................................

 

RESULT :

{

"FLAG_c1" : "c1",

"NAME_c1" : "carbon",

"Flag_c1" : "c1",

"Name_c1" : "carbon"

}

.....................................................................................................

<<  should appear ... >>

.....................................................................................................

Expected result :

{

"FLAG_c1" : "c1",

"NAME_c1" : "carbon"

}

 

Workaround (if any)  : Close FileMaker,... and back Open FMP

 

 

________________

regards

Draco

Outcomes