Changed internal class for reading json to public.