core issue bs.length/JSONMarshal