Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on July 28, 2022, 03:07:55 am



Title: Ask Reuben 137 - JSON Serialization - Array or Record
Post by: Reuben B. on July 28, 2022, 03:07:55 am
I came across a recent support case, and I thought it was interesting because the issue was due to external products.  It was a good example of finding information related to the case in external resources.
 
The way the issue presented itself was that a -8109 error was occurring with a util.JSON.parse() call. 
 
The crux of the issue ultimately was in the external product that was responsible for the formatted JSON string.  This external product was not following standards, and an array that only had one element was being sent as a record and not an array.  However without changing the external product, our product had to handle it.
 
Read more about this at https://4js.com/ask-reuben/ig-137/