Fixed the JSON NullPointerException by changing the database configuration so it regenerates transient fields when objects are retrieved