raw3dToJson made a little more lenient