Formatting into proper json