minor bugfix for "balance too low" case

json should be written within []