Re: [tw5] Compress JSON with JSONCRUSH

2020-12-15 Thread TW Tones
Jeremy,

On the zip plugin I see value in proving preconfigured template to zip and 
export;

   - Larger JSON/plugin files *as in this thread*
   - static sites
   - library files with nominated plugins (*I am really keen on this*)
  - The first thing I will do is use it to generate a library of plugin 
  libraries and my own plugins and macros.
   - Full backup zip
   - Save Changes only zip
   - Save Local Storage  only zip

*The question that arises is decompression/ restoration from Zip.*

Tones

On Tuesday, 15 December 2020 at 22:07:36 UTC+11 jeremy...@gmail.com wrote:

> Just to add that the library is designed to encode/compress JSON so that 
> it can be more efficiently stored in URLs. It avoids characters that have 
> to be escaped when URI encoded. So it is not exactly a general purpose JSON 
> compression library; for that straightforward ZIP compression would seem to 
> make more sense.
>
> Best wishes
>
> Jeremy
>
> On 14 Dec 2020, at 21:52, TW Tones  wrote:
>
> Jan,
>
> I have recently being importing CSV files containing data, and generating 
> large plugins/JSON files with JSON Mangler. In this case a product 
> inventory from an online store.
>
> Whilst I can see value for compression/expansion of a JSON file on import 
> and export, when it is in the Wiki the main value is in being able to 
> access the (shadow) tiddlers within. Although if a wiki was to be a 
> repository of json data it would benefit from compression. 
>
> There is now the zip plugin in the pre-release of course.
>
> Interesting.
> Tones
>
> On Tuesday, 15 December 2020 at 02:49:47 UTC+11 Jan wrote:
>
>> Hi Tiddlywikians. 
>> I just encountered the a library which can verry efficiently reduce the 
>> size of JSON files. 
>>
>> https://github.com/KilledByAPixel/JSONCrush 
>>
>> So far I do not have a TW-usecase for this. But I want to share it with 
>> you because maybe someone else can build something with that. 
>>
>> Best wishes Jan 
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/9a4508cd-f22c-4b08-8971-4f7dcc81454cn%40googlegroups.com
>  
> 
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/50dfcdc3-ad1a-4f2a-a81a-36fc5157aa7bn%40googlegroups.com.


Re: [tw5] Compress JSON with JSONCRUSH

2020-12-15 Thread Jeremy Ruston
> So could it be employed to get those tiddly sites in a link working 
> consistently that we were playing with? If memory serves it stalled because 
> of special chars in the url. Or did it get finesses and done and I just 
> missed it! :)

The “share” plugin does indeed embed JSON into an URL, and so could indeed 
benefit. The challenge we found was that many platforms wouldn’t correctly 
recognise the entire link, which could possibly be something that a better 
encoding might fix.

Best iwshes

Jeremy

> On Tuesday, 15 December 2020 at 11:07:36 UTC jeremy...@gmail.com wrote:
> Just to add that the library is designed to encode/compress JSON so that it 
> can be more efficiently stored in URLs. It avoids characters that have to be 
> escaped when URI encoded. So it is not exactly a general purpose JSON 
> compression library; for that straightforward ZIP compression would seem to 
> make more sense.
> 
> Best wishes
> 
> Jeremy
> 
> 
>> On 14 Dec 2020, at 21:52, TW Tones > > wrote:
>> 
> 
>> Jan,
>> 
>> I have recently being importing CSV files containing data, and generating 
>> large plugins/JSON files with JSON Mangler. In this case a product inventory 
>> from an online store.
>> 
>> Whilst I can see value for compression/expansion of a JSON file on import 
>> and export, when it is in the Wiki the main value is in being able to access 
>> the (shadow) tiddlers within. Although if a wiki was to be a repository of 
>> json data it would benefit from compression. 
>> 
>> There is now the zip plugin in the pre-release of course.
>> 
>> Interesting.
>> Tones
>> 
>> On Tuesday, 15 December 2020 at 02:49:47 UTC+11 Jan wrote:
>> Hi Tiddlywikians. 
>> I just encountered the a library which can verry efficiently reduce the 
>> size of JSON files. 
>> 
>> https://github.com/KilledByAPixel/JSONCrush 
>>  
>> 
>> So far I do not have a TW-usecase for this. But I want to share it with 
>> you because maybe someone else can build something with that. 
>> 
>> Best wishes Jan 
>> 
> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/9a4508cd-f22c-4b08-8971-4f7dcc81454cn%40googlegroups.com
>>  
>> .
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/4d355252-d056-4cc6-a374-10a09199aea4n%40googlegroups.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/12DD1596-11B5-449E-8496-49791F6FB28D%40gmail.com.


Re: [tw5] Compress JSON with JSONCRUSH

2020-12-15 Thread Ste

So could it be employed to get those tiddly sites in a link working 
consistently that we were playing with? If memory serves it stalled because 
of special chars in the url. Or did it get finesses and done and I just 
missed it! :)
On Tuesday, 15 December 2020 at 11:07:36 UTC jeremy...@gmail.com wrote:

> Just to add that the library is designed to encode/compress JSON so that 
> it can be more efficiently stored in URLs. It avoids characters that have 
> to be escaped when URI encoded. So it is not exactly a general purpose JSON 
> compression library; for that straightforward ZIP compression would seem to 
> make more sense.
>
> Best wishes
>
> Jeremy
>
> On 14 Dec 2020, at 21:52, TW Tones  wrote:
>
> Jan,
>
> I have recently being importing CSV files containing data, and generating 
> large plugins/JSON files with JSON Mangler. In this case a product 
> inventory from an online store.
>
> Whilst I can see value for compression/expansion of a JSON file on import 
> and export, when it is in the Wiki the main value is in being able to 
> access the (shadow) tiddlers within. Although if a wiki was to be a 
> repository of json data it would benefit from compression. 
>
> There is now the zip plugin in the pre-release of course.
>
> Interesting.
> Tones
>
> On Tuesday, 15 December 2020 at 02:49:47 UTC+11 Jan wrote:
>
>> Hi Tiddlywikians. 
>> I just encountered the a library which can verry efficiently reduce the 
>> size of JSON files. 
>>
>> https://github.com/KilledByAPixel/JSONCrush 
>>
>> So far I do not have a TW-usecase for this. But I want to share it with 
>> you because maybe someone else can build something with that. 
>>
>> Best wishes Jan 
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/9a4508cd-f22c-4b08-8971-4f7dcc81454cn%40googlegroups.com
>  
> 
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4d355252-d056-4cc6-a374-10a09199aea4n%40googlegroups.com.


Re: [tw5] Compress JSON with JSONCRUSH

2020-12-15 Thread Jeremy Ruston
Just to add that the library is designed to encode/compress JSON so that it can 
be more efficiently stored in URLs. It avoids characters that have to be 
escaped when URI encoded. So it is not exactly a general purpose JSON 
compression library; for that straightforward ZIP compression would seem to 
make more sense.

Best wishes

Jeremy

> On 14 Dec 2020, at 21:52, TW Tones  wrote:
> 
> Jan,
> 
> I have recently being importing CSV files containing data, and generating 
> large plugins/JSON files with JSON Mangler. In this case a product inventory 
> from an online store.
> 
> Whilst I can see value for compression/expansion of a JSON file on import and 
> export, when it is in the Wiki the main value is in being able to access the 
> (shadow) tiddlers within. Although if a wiki was to be a repository of json 
> data it would benefit from compression. 
> 
> There is now the zip plugin in the pre-release of course.
> 
> Interesting.
> Tones
> 
> On Tuesday, 15 December 2020 at 02:49:47 UTC+11 Jan wrote:
> Hi Tiddlywikians. 
> I just encountered the a library which can verry efficiently reduce the 
> size of JSON files. 
> 
> https://github.com/KilledByAPixel/JSONCrush 
>  
> 
> So far I do not have a TW-usecase for this. But I want to share it with 
> you because maybe someone else can build something with that. 
> 
> Best wishes Jan 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/9a4508cd-f22c-4b08-8971-4f7dcc81454cn%40googlegroups.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/B3A0356B-0E7F-437B-9AA7-A6B27B3E2282%40gmail.com.


[tw5] Compress JSON with JSONCRUSH

2020-12-14 Thread Jan

Hi Tiddlywikians.
I just encountered the a library which can verry efficiently reduce the 
size of JSON files.


https://github.com/KilledByAPixel/JSONCrush

So far I do not have a TW-usecase for this. But I want to share it with 
you because maybe someone else can build something with that.


Best wishes Jan

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5FD7885F.204%40googlemail.com.