Corrections to JSON wire implementation