Search found 24 matches: decoding

Return to advanced search

WebView2 Essentials: Guides, Tips & Resources

... process for each website or web app, which helps with security and stability. Utility Process: Performs various tasks, such as networking or decoding media files. GPU Process: Handles GPU-related tasks. This architecture, where multiple processes run simultaneously, enhances performance, ...
by Otto
Wed Jan 10, 2024 6:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WebView2 Essentials: Guides, Tips & Resources
Replies: 2
Views: 463

Re: Help with complex JSON

... to a DBF? I am sure it is very simple, I am new to JSON decoding. Thanks in advance for your help! //----------------------------------------------------------------------------- Function aReadjson( cJson ...
by cdmmaui
Wed Mar 22, 2023 2:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help with complex JSON
Replies: 12
Views: 1159

Re: Decode JSON - revisited

... you completely. Also, I do have the formatted response as you suggested and should have used that in my post. One of the time consuming tasks in decoding JSON responses is the need to compare the type of the value returned and then look at it relative to how it will be applied in the application. ...
by TimStone
Wed Feb 15, 2023 7:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Decode JSON - revisited
Replies: 3
Views: 326

JSON with HTTPS: post

Please read carefully. I will try to explain. Currently I use the process for interacting with a website, and then decoding a response in JSON. Here is a cutdown version of the fuction: Function PostTo360( cUrl, cData, cContentType,cAuthorization )    Local oOle,cRet:='',uRet  ...
by TimStone
Mon May 23, 2022 5:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: JSON with HTTPS: post
Replies: 28
Views: 1758

UPC lookup

... retrieving this with a barcode reader and inserting it into the right field for use and saving. My question: Has anyone tried working with a decoding option for UPC codes that looks up the item, and returns the descriptive data ? I know this is commonly available in many apps, so I assume ...
by TimStone
Mon Apr 11, 2022 5:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: UPC lookup
Replies: 4
Views: 235

Re: how to scan a barcode presents in a jpeg file

... It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code. Included with the library are basic applications for decoding captured bar code images and using a video device (eg, webcam) as a bar code scanner. For application developers, language bindings are included ...
by Antonio Linares
Thu Jan 20, 2022 8:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to scan a barcode presents in a jpeg file
Replies: 11
Views: 639

Re: Are there any Treeview samples with associated edit boxes?

... encoding = "ISO-8859-1" ?> Best regards, Otto thanks Otto my report system save on Rpt file ( xml) , now I must make the decoding into
by Silvio.Falconi
Fri Nov 27, 2020 6:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Are there any Treeview samples with associated edit boxes?
Replies: 44
Views: 4558

Re: Hash when decoding JSON [ Mr. Rao ]

Enrico, Sometimes that isn't possible due to an NDA that does not allow me to post some links / data. Let me put it this way. Mr. Rao suggested this code as an alternative to hb_jsondecode( ) The value I receive from the server is a properly formatted json response. If I use the hb_jsondecode( ) fun...
by TimStone
Fri Jul 21, 2017 6:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Re: Hash when decoding JSON [ Mr. Rao ]

Tim,

it would be much easier if you could build a reduced PRG and data showing the problem.

EMG
by Enrico Maria Giordano
Fri Jul 21, 2017 5:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Re: Hash when decoding JSON [ Mr. Rao ]

Unfortunately that doesn't resolve the problem. There is still an error with &

Tim
by TimStone
Fri Jul 21, 2017 4:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Re: Hash when decoding JSON [ Mr. Rao ]

Dear Mr. Tim

I had similar problem for getting JSON data for my program using TELEGRAM.

Code: Select all  Expand view

      cStr  := (StrTran( cStr, '":', '"=>' ))
      cStr  := (StrTran( cStr, '""', '"' ))  //add this line
      hHash := &cStr
 


Regards
by dagiayunus
Fri Jul 21, 2017 8:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Re: Hash when decoding JSON [ Mr. Rao ]

I think the problem is the use of & . Here is the code section, and suggested function, which I have tried both ways. Since Mr. Rao offered this solution in another thread, I was hopeful he would clarify. What is important to know is that I must read, and save, every value of the return data. js...
by TimStone
Thu Jul 20, 2017 4:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Re: Hash when decoding JSON [ Mr. Rao ]

I think the best solution is provided by Mr Anser, but this code can solve their error

Code: Select all  Expand view

.../...
  cStr  := '{"response"=>' + cStr + '}'
  hHash := &cStr
.../...
 
by cnavarro
Thu Jul 20, 2017 4:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Re: Hash when decoding JSON [ Mr. Rao ]

May be you can use something similar as follows, you may have to substitute the names as per your JSON file

hb_jsonDecode(cResponse,@hJson)
xValue:= hJson["Section3"]["Subsection3A"]["DetailSections"]["Details"]

Regards

Anser
by anserkk
Thu Jul 20, 2017 4:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772

Hash when decoding JSON [ Mr. Rao ]

In a previous thread, you shared the following function: function StrToHashArray( cStr )   local hHash, aHash   cStr  := CharRepl( "[]", RangeRem( 1, 31, cStr ), "{}" )   do while '" :' $ cStr      StrTran( cStr, '" :', '":' )   endd...
by TimStone
Wed Jul 19, 2017 9:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Hash when decoding JSON [ Mr. Rao ]
Replies: 7
Views: 1772
Next

Return to advanced search