JSON and Transactions issues