Save JSON data with object members well-arranged

Share your advanced PureBasic knowledge/code with the community.
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Save JSON data with object members well-arranged

Post by Little John »

New version 1.20, 2019-03-11

Added
  • Public procedure StoreOrder():
    Write wanted order of object members to a preference file.
  • Public procedure LoadOrder():
    Read wanted order of object members from a preference file.
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Save JSON data with object members well-arranged

Post by Little John »

New version 1.21, 2020-06-26

Extended
  • To the public procedures InitObject() and InitObjectStr(), now an asterisk (*) can be passed as parameter for the object name. The asterisk matches any object that is not explicitly specified in another call of InitObject() or InitObjectStr().
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Save JSON data with object members well-arranged

Post by Little John »

New version 1.22, 2024-09-08

Fixed
  • According to the JSON rules, not all special characters were escaped correctly.
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Save JSON data with object members well-arranged

Post by idle »

I wish I knew about this a week ago would have saved a bit of effort.
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Save JSON data with object members well-arranged

Post by Little John »

:)
Post Reply