I've recently discovered that the version of JSON Utility object that comes with BP 5.0.12 (and version 4 as well) throws an exception when converting json containing an empty array.
The easy fix is to change line 120 in global code:
dt.Columns.Add...