fixed to json methods