making JSON returned uniform