added function for pretty json
fix bug in language label