added processPublicStuffJson  function