Jump to content

wright

Members
  • Content Count

    37
  • Joined

  • Last visited

Everything posted by wright

  1. Hello guys! @Angus Robertson, any progress?
  2. It seems that TJSONIterator.Path doesn't read the values at all! i tried this and i still figure issues: cuisine doens't load. ............ ListView1.Items.BeginUpdate; try LStreamReader := TStreamReader.Create('../../resto.json', TEncoding.UTF8, True); LJsonTextReader := TJsonTextReader.Create(LStreamReader); oIter := TJSONIterator.Create(LJsonTextReader); while oIter.Next() do begin oItem := ListView1.Items.Add; for i := 1 to ListView1.Columns.Count - 1 do oItem.SubItems.Add(''); if oIter.&Type in [TJsonToken.StartObject, TJsonToken.StartArray] then begin oIter.Recurse; oIter.Next('name'); oItem.Caption := oIter.AsValue.ToString; oIter.Next('cuisine'); oItem.SubItems[0] := oIter.AsValue.ToString; end ......... .........
  3. Yes! i did it before i posted but the result was ennoying and shown 0 lines. that's the reason i used the Json data as default. NB: i forgot to tell that the json data i used is a piece of code from the restaurant project inside Rad Studio samples which uses MongoDB as database: * navigate to: Object Pascal\Database\FireDAC\Samples\DBMS Specific\MongoDB\Restaurants * original Json: Object Pascal\Database\FireDAC\DB\Data\restaurants.json
  4. Good news, Thank you! i appreciate!
  5. really weird. In the meantime i tried with trial version of "IPWorks ssl" all is fine, works very well. I Think i have to check inside ICS and do a proper client as you said in the upper comments! That's the tricky part!
  6. exactly what i did. via 2 sources: 1. https://en.wikipedia.org/wiki/WebSocket#Protocol_handshake 2. attached png but i don't know why in my case TCP proto doesn't work. im still learning delphi prog and websocket, i'll check again for a better workarround.
  7. Seems to work! i change proto to UDP. but i think it's not right way to solve it. i dig.
  8. Of course. i enabled ssl, socket familly: sfAny,
  9. As @Angus Robertson reported; so i followed what you suggested. i got no error know but no connection or it seems attempting to connect. (Port 80 even with 443)
  10. Hi, i forgot to said that i had already tried with only the hostname as you mentionned, but the error the same "cannot convert host address"
  11. Hello,I am learning to use the TJSONIterator(Readers and Writers JSON Framework) under delphi 10.3.3 and I found a russian link putting this into practice through the creation of an application assessing the negative impact on the environment: https://webdelphi.ru/. Firstly, i have a custom class definition named "NVOS.JsonParser.pas" and the "open-data-1.json" file, i don't know how to proceed However, I can't figure out already knowing that the result should look like: "App.png". open-data-1.json
×