less internal json errors in gapi