finishing JSON code