[CLOSED] Using JSONTools to recurse lazarus / 21-General ---------------------------------------------------------------------- pcurtis · 2022-04-18 08:44 Does anyone have a snippet of code on using JSONTools to fill a treeview? ---------------------------------------------------------------------- avk · 2022-04-18 09:28 Are you sure JsonTools is portable? ---------------------------------------------------------------------- pcurtis · 2022-04-18 10:03 Works on Win ---------------------------------------------------------------------- avk · 2022-04-18 12:26 Quote from: pcurtis on April 18, 2022, 12:03:37 pmWorks on Win Are you sure? On my Win(comma as decimal separator) this test: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program test;{$mode objfpc}{$H+} uses  SysUtils, JsonTools;begin  with TJsonNode.Create do    try      Parse('{"pi": 3.1416}');      WriteLn(Find('pi').AsNumber.ToString);    finally      Free;    end;end.  prints 0. ---------------------------------------------------------------------- pcurtis · 2022-04-18 13:22 try WriteLn(Find('pi').AsJson); Is 3,141 legal json? Anyway, I've solved it.