returns json as html