Added a function to beautify json on a selected region