Author Topic: JSON Parser  (Read 4296 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: JSON Parser
« Reply #15 on: June 11, 2019, 09:49:55 PM »
Why not just replace the icon ?
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

2B||!2B

  • Member
  • **
  • Posts: 85
Re: JSON Parser
« Reply #16 on: June 28, 2019, 08:29:07 PM »
fearless thanks. Sorry for the late reply

I just use the default RC that comes with the MASM32.

Code: [Select]
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 - Build 1823
Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

But i changed to use VC++ 2008 resource compiler and it compiled successfully. Very good example  :thup:

hutch--
Sorry, i have already changed icon and it did not work. I think because icon is new and big one ~360kb.
Later i learned that smaller icons with basic colors compile fine with MASM32 default resource compiler.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: JSON Parser
« Reply #17 on: June 29, 2019, 10:13:20 PM »
Try the LoadResource API, it handles larger images.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

HSE

  • Member
  • *****
  • Posts: 1744
  • <AMD>< 7-32>
Re: JSON Parser
« Reply #18 on: August 03, 2021, 03:19:24 AM »
Hi Fearless!

Playing a little with JSON I noted a little problem in cjsontree.

In principle is valid :
Code: [Select]
{
  "obj1":{"value1":"x", "value2":"y"},
  "obj1":{"value1":"x2", "value2":"y2"},
  "obj1":{"value1":"x3", "value2":"y3"}
}
wich apparently is better to write:
Code: [Select]
{
  "obj1":[
  { etc},
  { etc},
  { etc}
 ]
}

cjsontree correctly take as valid first format, but there is a problem in the tree:
Code: [Select]
ffear1.json
 |- value1:x
 |- value2:y
+ obj1
+ obj1

Regards, HSE