I\'m trying the following query:
SELECT (json_data->\'position\'->\'lat\') + 1.0 AS lat FROM updates LIMIT 5;
(The +1.0 is just there
There are two operations to get value from JSON. The first one -> will return JSON. The second one ->> will return text.
JSON
->
->>
Details: JSON Functions and Operators
Try
SELECT (json_data->'position'->>'lat')::float + 1.0 AS lat FROM updates LIMIT 5