fetch and curl json