access the facts from the module

Hi All:

We are trying to write some site custom modules, it requires to access other facts generated from our custom modules. Anyone knows how to do it? or is there a way to pass json objects to the module?

Thanks
Jack

Found one solution: use “to_json” to convert the facts into string format, then pass this string into module.

Thanks
jack