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,
|
latitude: location.latitude,
|
||||||
description: location.description }
|
description: location.description }
|
||||||
end
|
end
|
||||||
render :json => @data.to_json
|
|
||||||
|
#print readable json
|
||||||
|
render :json => JSON.pretty_generate({location: @data})
|
||||||
|
|
||||||
|
#render :json => {location: @data}.to_json
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue