[extractor/common] Add expected_type in json ld routines