Fix usage of JSON builder