finally fixed json problem