make json readable
This commit is contained in:
1 parent
80abfc80bf
commit
624d12de6d
1 file changed
+5
-1
+5
-1
@@ -68,6 +68,10 @@ class Panel::Gprs::BackEnd::LocationsController < OrbitBackendController
|
||||
latitude: location.latitude,
|
||||
description: location.description }
|
||||
end
|
||||
render :json => @data.to_json
|
||||
|
||||
#print readable json
|
||||
render :json => JSON.pretty_generate({location: @data})
|
||||
|
||||
#render :json => {location: @data}.to_json
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user