document new_from_json/2

fix #372