call JSONToTable correctly

I'm still getting the hang of this whole "logic" thing