[API] Move deserialize tools for the API in yojson tools file into API_deserialize