There could be several reasons why the object is immediately null:
- Invalid JSON: If the JSON that was registered is invalid, then the object will be null. Check if the JSON is properly formatted and does not have any syntax errors.
- Incorrect object mapping: If the object mapping is incorrect, then the object will be null. Check if the properties in the JSON matches the properties in the model class.
- Empty JSON: If the JSON is empty, then the object will be null. Make sure there is valid content in the JSON.
- Incorrect use of Defaultbuilder: If the Defaultbuilder is not used correctly, then the object will be null. Make sure the code is properly written and executed.