title: How to convert data from PostGIS database into GeoJSON in Java
body: <p>I have a PostgreSQL/PostGIS database and I want to convert my data table from database into GeoJSON format.</p>
  
  <p>My purpose is to use this GeoJSON for creating a map with JavaScript. I am using Java and JDBC in Spring MVC. What is the best way to convert data?</p>