fixed up json format post swithc to jsx