N
N
Nikolay Baranenko2017-06-11 23:28:17
Java
Nikolay Baranenko, 2017-06-11 23:28:17

How to convert sql result into json?

Hello.
Maybe I'm asking a banal question, BUT still
there is a result of a sql query

Employee    Input_Weight1 Input_Weight2 Input_Weight3
      сотрудник1 0.2          0.3          0.3
      сотрудник2 0            0            0
      сотрудник3 0            0            0

I need to turn it into JSON for further processing on a java script.
How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Azim Kurt, 2017-06-11
@drno-reg

Gson
Gson - habr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question