Announcement

Collapse
No announcement yet.

Reading specific value from JSON file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reading specific value from JSON file

    Hi,

    I'm looking for a tip/help with getting data from JSON file.

    What I'm trying to do is:

    1) Find central.json file in %AppData%\\Roaming

    2) Check file for value:
    libraries \ path

    3) Make found path a %Variable%

    4) Use this variable to search additional files and rename them.

    While executing all the actions wouldn't be a problem (like with XML which is easily supported) I can't get it done right with JSON.

    I attached the specific file as well.

    Thanks for help,
    Mateusz
    Attached Files

  • #2
    This can be handled with Lua JSON modules such as dkjson.lua:

    Click image for larger version

Name:	SCRN-2020-03-16-01.png
Views:	145
Size:	83.3 KB
ID:	304876


    Ulrich
    Last edited by Ulrich; 03-16-2020, 08:03 PM.

    Comment


    • #3
      Thank you for the tip. I'll have a look on this today!

      Comment

      Working...
      X