@@ -6,10 +6,12 @@ writing JSON objects
66Copyright © 2014-25 Michael Scott Asato Cuthbert.
77Released under the BSD (3-clause) license. See LICENSE.
88
9- # Pre-class-based system
9+ # Pre-class-based system (Closing down)
1010
1111Note for 2025+: This system depends on legacy style functions that behave like objects.
1212To use with modern Javascript you will need to assign all classes to globalThis (window, global).
13+ For this reason, v1.2 will be the last version of jsonpickleJS. Using custom decoders in JSON.parse
14+ is probably the best solution going forward in the modern world.
1315
1416# Python to Javascript and Back
1517Python has a remarkable number of ways (for a language that believes there's only one way to do it)
@@ -34,8 +36,8 @@ namespace, such as ``window``, in the Javascript. For instance, if you have a c
3436`` window.myobject.Thing `` in Javascript. The object, and any subobjects, will be created as closely
3537as possible in Javascript.
3638
37- The reverse is also possible, with some caveats. Since Javascript doesn 't (until ECMAScript 6) have
38- the concept of named classes, each object will need to have a marker somewhere on it saying what
39+ The reverse is also possible, with some caveats. Since Javascript didn 't (until ECMAScript 6) have
40+ the concept of named classes, each object needed to have a marker somewhere on it saying what
3941Python object it should convert back to. The marker is
4042`` o[jsonpickle.tags.PY_CLASS] = 'fully.qualified.ClassName' `` .
4143It may be possible in the future to use `` instanceof ``
0 commit comments