How to convert .obj to json

I’m trying to load .obj and convert to JSON but pc.createMesh can’t have more than 65535 indices.
If there any algorithm to convert .obj to JSON?
How I can load .obj file to the scene?
Are there any other methods of loading model except .glTF?

Regarding import formats the default format to use with the editor is FBX. But that won’t get you away from the 16-bit indices limit which is a limit imposed on older devices.

You will have to split your model in segments to get away with that. You can then setup batching groups and the batcher will take care to reduce the draw calls and keep all batch meshes below the limit.