Migrating to Openfire

We are migrating to openfire. We used JSON format to maintain the user status, details. The application will listen for particular key changes.

In Openfire, how do we handle the additional data along with messages and how to maintain the different user status other than online and offline.

And also how the application will know the value changes in JSON. is there any call back /listener to know the value change.

Thanks
Sudha