Library Viewer JSON View Incorrect Column Value

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

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