Further gd fixes

fix to the array of json data being output