Implemented btp_java_thread_to_json. #11