On Thursday, February 27, 2014 4:45:10 PM UTC+1, Jeremy Ruston wrote:
>
> > Jeremy did suggest a format to reference JSON elements from wikitext in 
> an issue:
>
> Just checking: did you see my post earlier in this thread?
>
> I think you are suggesting a number of more or less separable things:
>
> * That the result of retrieving a value from a tiddler dictionary should 
> return a tiddler, rather than just a string of text as it does at the moment
>

If I know the exact address of a string it returns a string. 

If I choose to request the root element it should return a string 
representation of a tiddler JSON object. So I can see, how I need to build 
my "JSON Pointer" to get a string object.

If a plugin requests the root object it gets a JSON object and it can do 
what ever it wants. 
 

> * That we should use the existing wikitext heading syntax to represent 
> hashmap entries
>
 
If we can use
+multi:
some text
+

I see no difference to:
! multi:
some text
!

So yes. 
but I would like to be able to retrieve "/multi/key" too. 
Written like:

! multi:
some text
key: value
!

So 
/multi/0 ... some text
/mulit/1 ... key: value
/mulit/key ... value

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to