Обработка файла JSON с помощью ORM в Spring BootJAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Обработка файла JSON с помощью ORM в Spring Boot

Сообщение Anonymous »


I have a JSON file called Person.json

{ "id": 1, "name": "John", "description": "I am john", "address": "XYZ address" } I want to know if there is any ORM exist to deal with the data in the JSON file.

Example - I want to update field 'description' to "Hi, I am John". I'll just call an update method.

Person person = jsonRepository.findById(1); person.setDescription("Hi, I am John"); jsonRepository.save(person); Same as we deal with the database using JPA and their implementations in java projects.


Источник: https://stackoverflow.com/questions/781 ... pring-boot
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»