fixing api json functions