April 2019 Updates: JSONTools Extension Version 4 Released


There have been a lot of things happening in the background and I released I haven't published an article in a while so I wanted to update you on some of the things I have been working on alongside announcing that Version 4 of JSONTools Extension is now available.

Incase you missed it Version 3 of JSONTools was released about a month ago which brings some fixes and added functionality, in version 3 we saw improved documentation, fixed the method OpenObjectInArrayByIndex to use non-zero indexes, and added the method GetIntInArray. The method GetStringInSubJSONObject was also updated to support all object types.

I also released an improved walkthrough of the different methods in the JSONTools extension in a new format using Google Slides and you can find this improved documentation on the JSONTools extension page. The example project was also updated to reflect the latest versions of JSONTools.

This brings us to Version 4 of JSONTools Extension, which adds extra checks and balances that prevent the likelihood of your app running into a runtime error. In JSON a null value is actually a valid value, and while it's probably not best practice to use a null value in your JSON, it is still valid JSON that needs to be considered.

Version 4 of JSONTools adds null checking across all of the methods listed below, this is a welcome improvement to the extension as any improvements that improve the stability and reduces the number of scenarios that result in an error, greatly improve the extension.

The methods that have been updated for null checking are as follows:

  • OpenJSONObject
  • OpenJSONArray
  • OpenSubJSONArray
  • OpenSubJSONObject
  • GetStringValue
  • GetIntValue
  • GetBooleanValue
  • GetIntInArray
  • GetStringInArray
  • GetStringInArrayByIndex
  • OpenObjectInArrayByIndex
  • GetStringInSubJSONObject
Version 4 also fixes the GetStringInArrayByIndex method to use non-zero indexes.

That's all the updates I have for now but keep an eye out for more things from me coming soon!



Was this helpful?

Yes No

Comments

Thunkable Components