[Done] Library Viewer JSON View Incorrect Column Value

Post bugs related to the IDE here
User avatar
spikey
Enthusiast
Enthusiast
Posts: 769
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

[Done] Library Viewer JSON View Incorrect Column Value

Post by spikey »

The #JSON column of the JSON Library Viewer shows the text '%I64i' on all rows.

Code: Select all

#JSON_Create = 0
#JSON_Parse = 1

; Build JSON data from scratch
;
If CreateJSON(#JSON_Create)
  Person = SetJSONObject(JSONValue(#JSON_Create))
  SetJSONString(AddJSONMember(Person, "FirstName"), "John")
  SetJSONString(AddJSONMember(Person, "LastName"), "Smith")
  SetJSONInteger(AddJSONMember(Person, "Age"), 42)
  
  Values = SetJSONArray(AddJSONMember(Person, "Values"))
  For i = 1 To 5
    SetJSONInteger(AddJSONElement(Values), Random(256))
  Next i

EndIf

; Read JSON data from a string
;
Input$ = "[1, 3, 5, 7, null, 23, 25, 27]"
If ParseJSON(#JSON_Parse, Input$)
  NewList Numbers()
  ExtractJSONList(JSONValue(#JSON_Parse), Numbers())
EndIf

ShowLibraryViewer("JSON", #JSON_Create)

CallDebugger
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Library Viewer JSON View Incorrect Column Value

Post by Fred »

Seems to work as expected, can anybody confirm ?
User_Russian
Addict
Addict
Posts: 1535
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Library Viewer JSON View Incorrect Column Value

Post by User_Russian »

This bug in 6.04 and previous versions.
In 6.10 - fixed.
Post Reply