Update helper.go

make it work with json instead of codec tag