json as a type