fix json_encode pretty print support check
add pretty print to Json ViewModel