convert to float before json. gpu problem?