doc toJson and doc meta fields