1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

readDictJSONTable skips null values

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Dummiesman, Mar 24, 2015.

  1. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,700
    The lua function readDictJSONTable will return a table with a missing element if there is null in that json row.

    Example:

    "test":[
    ["val1","val2"],
    [null,"test"],
    ]

    Will return .val1 as test when nil is expected.
     
    #1 Dummiesman, Mar 24, 2015
    Last edited by a moderator: Mar 24, 2015
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice