Import old Js object

Hi, i´m new to ThreeJs. I tried to load an ld version os JSon (v 3.1) under the editor at https://threejs.org/editor. But, the data iss not loaded. What i´m doing wrong ?

The initial data of the file i´m loading is like these:

{
“metadata”: {
“formatVersion”: 3.1
},
“uvs”:[[0.46037983894348145,0.00014221668243408203,0.53708314895629883,-5.9604644775390625e-08,0.60611593723297119,0.23147785663604736,0.54049885272979736,0.22607147693634033,0.62285411357879639,5.5968761444091797e-05,0.6836317777633667,0.22988009452819824,0.66031169891357422,0.39174163341522217,0.60254895687103271,0.39758485555648804,0.72310841083526611,0.3865247368812561,0.70263814926147461,0.54616200923919678,0.6280895471572876,0.55156850814819336,0.797554612159729,0.54782652854919434,0.71232342720031738,0.71519064903259277,0.60750699043273926,0.70543718338012695,0.82120001316070557,0.72609567642211914,0.65070390701293945,0.8550795316696167,0.52779340744018555,0.78280746936798096,0.80013978481292725,0.85979890823364258,0.34710758924484253,0.57995879650115967,0.41104942560195923,0.70564234256744385,0.3207898736000061,0.756827712059021,0.24749314785003662,0.51687085628509521,0.45218354463577271,0.86595261096954346,0.5775597095489502,0.91198885440826416,0.76088583469390869,0.95361542701721191,0.24454015493392944,0.83800148963928223,0.17879998683929443,0.63675999641418457,0.38528859615325928,0.94011533260345459,0.51025664806365967,0.98938298225402832,0.66242814064025879,0.99999988079071045,0.61531925201416016,0.47457662224769592,0.68204331398010254,0.47102537751197815,0.76033151149749756,0.46717563271522522,0.57152390480041504,0.31182816624641418,0.63268905878067017,0.31005796790122986,0.70337009429931641,0.30820241570472717,0.5004393458366394,0.11310684680938721,0.57104337215423584,0.11387377232313156,0.65324294567108154,0.11496801674365997,0.61779826879501343,0.62850284576416016,0.70752537250518799,0.63145458698272705,0.80937731266021729,0.63696110248565674,0.46037983894348145,0.00014221668243408203,0.53708314895629883,-5.9604644775390625e-08,0.60611593723297119,0.23147785663604736,0.54049885272979736,0.22607147693634033,0.62285411357879639,5.5968761444091797e-05,0.6836317777633667,0.22988009452819824,0.66031169891357422,0.39174163341522217,0.60254895687103271,0.39758485555648804,0.72310841083526611,0.3865247368812561,0.70263814926147461,0.54616200923919678,0.6280895471572876,0.55156850814819336,0.797554612159729,0.54782652854919434,0.71232342720031738,0.71519064903259277,0.60750699043273926,0.70543718338012695,0.82120001316070557,0.72609567642211914,0.65070390701293945,0.8550795316696167,0.52779340744018555,0.78280746936798096,0.80013978481292725,0.85979890823364258,0.34710758924484253,0.57995879650115967,0.41104942560195923,0.70564234256744385,0.3207898736000061,0.756827712059021,0.24749314785003662,0.51687085628509521,0.45218354463577271,0.86595261096954346,0.5775597095489502,0.91198885440826416,0.76088583469390869,0.95361542701721191,0.24454015493392944,0.83800148963928223,0.17879998683929443,0.63675999641418457,0.38528859615325928,0.94011533260345459,0.51025664806365967,0.98938298225402832,0.66242814064025879,0.99999988079071045,0.46037983894348145,0.00014221668243408203,0.53708314895629883,-5.9604644775390625e-08,0.60611593723297119,0.23147785663604736,0.54049885272979736,0.22607147693634033,0.62285411357879639,5.5968761444091797e-05,0.6836317777633667,0.22988009452819824,0.66031169891357422,0.39174163341522217,0.60254895687103271,0.39758485555648804,0.72310841083526611,0.3865247368812561,0.70263814926147461,0.54616200923919678,0.6280895471572876,0.55156850814819336,0.797554612159729,0.54782652854919434,0.71232342720031738,0.71519064903259277,0.60750699043273926,0.70543718338012695,0.82120001316070557,0.72609567642211914,0.65070390701293945,0.8550795316696167,0.52779340744018555,0.78280746936798096,0.80013978481292725,0.85979890823364258,0.34710758924484253,0.57995879650115967,0.41104942560195923,0.70564234256744385,0.3207898736000061,0.756827712059021,0.24749314785003662,0.51687085628509521,0.45218354463577271,0.86595261096954346,0.5775597095489502,0.91198885440826416,0.76088583469390869,0.95361542701721191,0.24454015493392944,0.83800148963928223,0.17879998683929443,0.63675999641418457,0.38528859615325928,0.94011533260345459,0.51025664806365967,0.98938298225402832,0.66242814064025879,0.99999988079071045,0.61531925201416016,0.47457662224769592,0.68204331398010254,0.47102537751197815,0.76033151149749756,0.46717563271522522,0.57152390480041504,0.31182816624641418,0.63268905878067017,0.31005796790122986,0.70337009429931641,0.30820241570472717,0.5004393458366394,0.11310684680938721,0.57104337215423584,0.11387377232313156,0.65324294567108154,0.11496801674365997,0.61779826879501343,0.62850284576416016,0.70752537250518799,0.63145458698272705,0.80937731266021729,0.63696110248565674,0.46037983894348145,0.00014221668243408203,0.53708314895629883,-5.9604644775390625e-08,0.60611593723297119,0.23147785663604736,0.54049885272979736,0.22607147693634033,0.62285411357879639,5.5968761444091797e-05,0.6836317777633667,0.22988009452819824,0.66031169891357422,0.39174163341522217,0.60254895687103271,0.39758485555648804,0.72310841083526611,0.3865247368812561,0.70263814926147461,0.54616200923919678,0.6280895471572876,0.55156850814819336,0.797554612159729,0.54782652854919434,0.71232342720031738,0.71519064903259277,0.60750699043273926,0.70543718338012695,0.82120001316070557,0.72609567642211914,0.65070390701293945,0.8550795316696167,0.52779340744018555,0.78280746936798096,0.80013978481292725,0.85979890823364258,0.34710758924484253,0.57995879650115967,0.41104942560195923,0.70564234256744385,0.3207898736000061,0.756827712059021,0.24749314785003662,0.51687085628509521,0.45218354463577271,0.86595261096954346,0.5775597095489502,0.91198885440826416,0.76088583469390869,0.95361542701721191,0.24454015493392944,0.83800148963928223,0.17879998683929443,0.63675999641418457,0.38528859615325928,0.94011533260345459,0.51025664806365967,0.98938298225402832,0.66242814064025879,0.99999988079071045]],
“faces”:[41,15,16,21,20,18,19,20,21,0,1,2,3,41,16,17,22,21,19,16,22,20,1,4,5,2,41,17,18,23,22,16,15,23,22,4,6,7,5,41,18,19,24,23,15,17,24,23,6,8,9,7,41,20,21,26,25,21,20,25,26,3,2,10,11,41,21,22,27,26,20,22,27,25,2,5,12,10,41,22,23,28,27,22,23,28,27,5,7,13,12,41,23,24,29,28,23,24,29,28,7,9,14,13,41,33,34,7,6,33,34,6,7,15,16,17,18,41,34,35,8,7,34,35,8,6,16,19,20,17,41,7,30,31,6,6,31,30,7,17,21,22,18,41,8,32,30,7,8,32,31,6,20,23,21,17,41,36,37,4,3,36,37,2,3,24,25,26,27,41,37,38,5,4,37,38,5,2,25,28,29,26,41,4,34,33,3,2,34,33,3,26,30,31,27,41,5,35,34,4,5,35,34,2,29,32,30,26,41,37,36,0,1,37,36,0,1,33,34,35,36,41,38,37,1,2,38,37,1,4,37,33,36,38,41,12,13,18,17,13,12,15,16,39,40,6,4,41,13,14,19,18,12,14,17,15,40,41,8,6,41,9,31,30,10,10,30,31,9,42,43,44,45,41,10,30,32,11,9,31,32,11,45,44,46,47,41,39,40,13,12,39,40,12,13,48,49,40,39,41,40,41,14,13,40,41,14,12,49,50,41,40,41,40,39,9,10,40,39,10,9,51,52,42,45,41,41,40,10,11,41,40,9,11,53,51,45,47,41,42,43,46,45,42,43,44,45,0,1,2,3,41,43,44,47,46,43,46,47,44,1,4,5,2,41,45,46,49,48,45,44,48,49,3,2,6,7,41,46,47,50,49,44,47,50,48,2,5,8,6,41,48,49,52,51,49,48,51,52,7,6,9,10,41,49,50,53,52,48,50,53,51,6,8,11,9,41,51,52,55,54,52,51,54,55,10,9,12,13,41,52,53,56,55,51,53,56,54,9,11,14,12,41,54,55,60,59,55,54,57,58,13,12,15,16,41,55,56,61,60,54,56,59,57,12,14,17,15,41,57,58,63,62,60,61,62,63,18,19,20,21,41,58,59,64,63,61,58,64,62,19,16,22,20,41,59,60,65,64,58,57,65,64,16,15,23,22,41,60,61,66,65,57,59,66,65,15,17,24,23,41,62,63,68,67,63,62,67,68,21,20,25,26,41,63,64,69,68,62,64,69,67,20,22,27,25,41,64,65,70,69,64,65,70,69,22,23,28,27,41,65,66,71,70,65,66,71,70,23,24,29,28,41,87,88,93,92,90,91,92,93,0,1,2,3,41,88,89,94,93,91,88,94,92,1,4,5,2,41,89,90,95,94,88,87,95,94,4,6,7,5,41,90,91,96,95,87,89,96,95,6,8,9,7,41,92,93,98,97,93,92,97,98,3,2,10,11,41,93,94,99,98,92,94,99,97,2,5,12,10,41,94,95,100,99,94,95,100,99,5,7,13,12,41,95,96,101,100,95,96,101,100,7,9,14,13,41,105,106,79,78,105,106,78,79,15,16,17,18,41,106,107,80,79,106,107,80,78,16,19,20,17,41,79,102,103,78,78,103,102,79,17,21,22,18,41,80,104,102,79,80,104,103,78,20,23,21,17,41,108,109,76,75,108,109,74,75,24,25,26,27,41,109,110,77,76,109,110,77,74,25,28,29,26,41,76,106,105,75,74,106,105,75,26,30,31,27,41,77,107,106,76,77,107,106,74,29,32,30,26,41,109,108,72,73,109,108,72,73,33,34,35,36,41,110,109,73,74,110,109,73,76,37,33,36,38,41,84,85,90,89,85,84,87,88,39,40,6,4,41,85,86,91,90,84,86,89,87,40,41,8,6,41,81,103,102,82,82,102,103,81,42,43,44,45,41,82,102,104,83,81,103,104,83,45,44,46,47,41,111,112,85,84,111,112,84,85,48,49,40,39,41,112,113,86,85,112,113,86,84,49,50,41,40,41,112,111,81,82,112,111,82,81,51,52,42,45,41,113,112,82,83,113,112,81,83,53,51,45,47,41,114,115,118,117,114,115,116,117,0,1,2,3,41,115,116,119,118,115,118,119,116,1,4,5,2,41,117,118,121,120,117,116,120,121,3,2,6,7,41,118,119,122,121,116,119,122,120,2,5,8,6,41,120,121,124,123,121,120,123,124,7,6,9,10,41,121,122,125,124,120,122,125,123,6,8,11,9,41,123,124,127,126,124,123,126,127,10,9,12,13,41,124,125,128,127,123,125,128,126,9,11,14,12,41,126,127,132,131,127,126,129,130,13,12,15,16,41,127,128,133,132,126,128,131,129,12,14,17,15,41,129,130,135,134,132,133,134,135,18,19,20,21,41,130,131,136,135,133,130,136,134,19,16,22,20,41,131,132,137,136,130,129,137,136,16,15,23,22,41,132,133,138,137,129,131,138,137,15,17,24,23,41,134,135,140,139,135,134,139,140,21,20,25,26,41,135,136,141,140,134,136,141,139,20,22,27,25,41,136,137,142,141,136,137,142,141,22,23,28,27,41,137,138,143,142,137,138,143,142,23,24,29,28],
“vertices”:[-0.71434127999999

I think the old JSON v3.1 loader is no longer supported. What errors are you getting in the console? You might be better off re-exporting your model in a newer format (like GLTF).

Correct. three.js only supports the so called JSON Object Scene format 4 which is created by Object3D.toJSON(). It can only be loaded via ObjectLoader.

The presented JSON uses a standard which is not supported anymore. You can still load it via LegacyJSONLoader but even this loader will be removed at some point.

I suggest you load your asset via LegacyJSONLoader and then export it via Object3D.toJSON(). After this process, the editor should be able to load your file.

Don´t know what i´m doing wrong. I suceeded to make it work with an older version of three, but once i updated, it keeps giving me the message " Errors

TypeError: Cannot read property ‘lastIndexOf’ of undefined" when i try to load an object file or any other then a glb one. I´m following the example made by loone converter, but it still having problems, once i update the library.

That’s because that older version of Three still supported the older JSON format, but newer versions of Three.js no longer support it.

If you want to work with the outdated JSON format you’re going to have to stick with the old version of Three.js.

Ok, but, this is not only breaking on Json files, but obj files and breaking it too.

Please demonstrate this issue with a live example or share your code via github.