make json readable
This commit is contained in:
parent
80abfc80bf
commit
624d12de6d
|
@ -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