[Lift] Re: Record and JSON

2009-03-07 Thread marius d.

Why not use Lift's parser one for the purpose of Record integration?

However the way I see it converting from a Record to JSON the result
should be a JsObj structure so that it can be used in other JS
expressions. Also converting from a Record to JsObj is pretty straight
forward at this Record stage.

Please don't get me wrong .. I really like what you did (as a generic
and isolated solution) but for Records stuff ... I don't see lots of
reasons to integrate it.

Br's,
Marius

On Mar 6, 10:11 pm, Jorge Ortiz jorge.or...@gmail.com wrote:
 And I forgot the link:

 http://paste.pocoo.org/show/106757/

 --j

 On Fri, Mar 6, 2009 at 12:11 PM, Jorge Ortiz jorge.or...@gmail.com wrote:
  Hey Folks,

  I wrote a Json AST and parser/serializer for unrelated reasons yesterday.
  This could be the basis of a Record -- Json tool.

  --j

  On Wed, Mar 4, 2009 at 9:11 AM, David Pollak 
  feeder.of.the.be...@gmail.com wrote:

  On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote:

  Hi,

  I was thinking that it might be useful to be able to obtain a JSON
  representation of a Record and also from a JSON construct to create a
  Record.

  Record defines now:

  def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] = Nil

  but that's not very intuitive ... not to mention not implemented yet.

  Thoughts ?

  I've been needing bi-directional JSON support to allow for the creation of
  complex JSON data structures.

  So, my thought is I have a need, but not a solution. :-)

  Br's,
  Marius

  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-07 Thread Derek Chen-Becker
As long as we're talking about parsers for JSON, is there some problem or
something missing from the Scala library's JSON parser that keeps us from
using that in Lift?

http://www.scala-lang.org/docu/files/api/scala/util/parsing/json/JSON$object.html

I maintain that one, so if there's some issue that needs to be addressed I'd
be happy to try and rectify it. I'm guessing that if Lift can't use it for
some reason then it may be an issue for other people as well.

Derek

On Sat, Mar 7, 2009 at 10:47 AM, marius d. marius.dan...@gmail.com wrote:


 Why not use Lift's parser one for the purpose of Record integration?

 However the way I see it converting from a Record to JSON the result
 should be a JsObj structure so that it can be used in other JS
 expressions. Also converting from a Record to JsObj is pretty straight
 forward at this Record stage.

 Please don't get me wrong .. I really like what you did (as a generic
 and isolated solution) but for Records stuff ... I don't see lots of
 reasons to integrate it.

 Br's,
 Marius

 On Mar 6, 10:11 pm, Jorge Ortiz jorge.or...@gmail.com wrote:
  And I forgot the link:
 
  http://paste.pocoo.org/show/106757/
 
  --j
 
  On Fri, Mar 6, 2009 at 12:11 PM, Jorge Ortiz jorge.or...@gmail.com
 wrote:
   Hey Folks,
 
   I wrote a Json AST and parser/serializer for unrelated reasons
 yesterday.
   This could be the basis of a Record -- Json tool.
 
   --j
 
   On Wed, Mar 4, 2009 at 9:11 AM, David Pollak 
   feeder.of.the.be...@gmail.com wrote:
 
   On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com
 wrote:
 
   Hi,
 
   I was thinking that it might be useful to be able to obtain a JSON
   representation of a Record and also from a JSON construct to create a
   Record.
 
   Record defines now:
 
   def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] =
 Nil
 
   but that's not very intuitive ... not to mention not implemented yet.
 
   Thoughts ?
 
   I've been needing bi-directional JSON support to allow for the
 creation of
   complex JSON data structures.
 
   So, my thought is I have a need, but not a solution. :-)
 
   Br's,
   Marius
 
   --
   Lift, the simply functional web frameworkhttp://liftweb.net
   Beginning Scalahttp://www.apress.com/book/view/1430219890
 - Show quoted text -
   Follow me:http://twitter.com/dpp
   Git some:http://github.com/dpp
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-07 Thread Derek Chen-Becker
Fair enough :)

On Sat, Mar 7, 2009 at 2:16 PM, David Pollak
feeder.of.the.be...@gmail.comwrote:

 Scala's JSON parser sits on top of some of Scala's parsing problems
 including recursive stuff that causes the parser to run out of stack when
 there are too many of certain kinds of elements.
 Even though you maintain Scala's JSON and can fix problems when they come
 up, we also have to wait for the Scala release cycle.  I'd rather keep the
 JSON stuff in Lift, but you're encouraged to maintain it.
 - Show quoted text -


 On Sat, Mar 7, 2009 at 12:47 PM, Derek Chen-Becker 
 dchenbec...@gmail.comwrote:

 As long as we're talking about parsers for JSON, is there some problem or
 something missing from the Scala library's JSON parser that keeps us from
 using that in Lift?


 http://www.scala-lang.org/docu/files/api/scala/util/parsing/json/JSON$object.html

 I maintain that one, so if there's some issue that needs to be addressed
 I'd be happy to try and rectify it. I'm guessing that if Lift can't use it
 for some reason then it may be an issue for other people as well.

 Derek

 On Sat, Mar 7, 2009 at 10:47 AM, marius d. marius.dan...@gmail.comwrote:


 Why not use Lift's parser one for the purpose of Record integration?

 However the way I see it converting from a Record to JSON the result
 should be a JsObj structure so that it can be used in other JS
 expressions. Also converting from a Record to JsObj is pretty straight
 forward at this Record stage.

 Please don't get me wrong .. I really like what you did (as a generic
 and isolated solution) but for Records stuff ... I don't see lots of
 reasons to integrate it.

 Br's,
 Marius

 On Mar 6, 10:11 pm, Jorge Ortiz jorge.or...@gmail.com wrote:
  And I forgot the link:
 
  http://paste.pocoo.org/show/106757/
 
  --j
 
  On Fri, Mar 6, 2009 at 12:11 PM, Jorge Ortiz jorge.or...@gmail.com
 wrote:
   Hey Folks,
 
   I wrote a Json AST and parser/serializer for unrelated reasons
 yesterday.
   This could be the basis of a Record -- Json tool.
 
   --j
 
   On Wed, Mar 4, 2009 at 9:11 AM, David Pollak 
   feeder.of.the.be...@gmail.com wrote:
 
   On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com
 wrote:
 
   Hi,
 
   I was thinking that it might be useful to be able to obtain a JSON
   representation of a Record and also from a JSON construct to create
 a
   Record.
 
   Record defines now:
 
   def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] =
 Nil
 
   but that's not very intuitive ... not to mention not implemented
 yet.
 
   Thoughts ?
 
   I've been needing bi-directional JSON support to allow for the
 creation of
   complex JSON data structures.
 
   So, my thought is I have a need, but not a solution. :-)
 
   Br's,
   Marius
 
   --
   Lift, the simply functional web frameworkhttp://liftweb.net
   Beginning Scalahttp://www.apress.com/book/view/1430219890
 - Show quoted text -
   Follow me:http://twitter.com/dpp
   Git some:http://github.com/dpp







 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp
 - Show quoted text -

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-06 Thread Timothy Perrett

POC == Proof of concept

On Mar 5, 11:33 pm, Charles F. Munat c...@munat.com wrote:
 POC?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-06 Thread Jorge Ortiz
Hey Folks,

I wrote a Json AST and parser/serializer for unrelated reasons yesterday.
This could be the basis of a Record -- Json tool.

--j

On Wed, Mar 4, 2009 at 9:11 AM, David Pollak
feeder.of.the.be...@gmail.comwrote:



 On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote:


 Hi,

 I was thinking that it might be useful to be able to obtain a JSON
 representation of a Record and also from a JSON construct to create a
 Record.

 Record defines now:

 def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] = Nil

 but that's not very intuitive ... not to mention not implemented yet.

 Thoughts ?


 I've been needing bi-directional JSON support to allow for the creation of
 complex JSON data structures.

 So, my thought is I have a need, but not a solution. :-)




 Br's,
 Marius




 --
 Lift, the simply functional web framework http://liftweb.net
 Beginning Scala http://www.apress.com/book/view/1430219890
 Follow me: http://twitter.com/dpp
 Git some: http://github.com/dpp


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-05 Thread Charles F. Munat

Although I'm using JPA, I'm very curious as to where you're going with 
this. Most of my websites have secure administrative interfaces. Lately, 
I've been playing around with Ext Js (extending YUI) for the back end, 
and having a single admin page that modifies itself on the basis of 
AJAX (or Comet) interaction. I could do it with XML, but it's easy to 
pass data back and forth as JSON and JSON wastes less bandwidth.

So I'm currently writing methods to output data in the JSON format that 
Ext Js requires (there is some flexibility here), and other methods to 
take the data back in and update the database. Down the road, I want to 
use Comet to provide editable tables that permit multiple users to work 
on the same dataset at the same time and see each other's changes.

I haven't had time to look at Record yet. Is it in the Scaladocs somewhere?

Chas.

Marius wrote:
 Hi,
 
 I was thinking that it might be useful to be able to obtain a JSON
 representation of a Record and also from a JSON construct to create a
 Record.
 
 Record defines now:
 
 def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] = Nil
 
 but that's not very intuitive ... not to mention not implemented yet.
 
 Thoughts ?
 
 Br's,
 Marius
  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-05 Thread Charles F. Munat

POC?

marius d. wrote:
 :) .. ok ... let me noodle for while on this and I'll get back with
 more details ... perhaps a POC
 
 On Mar 4, 7:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
 On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote:

 Hi,
 I was thinking that it might be useful to be able to obtain a JSON
 representation of a Record and also from a JSON construct to create a
 Record.
 Record defines now:
 def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] = Nil
 but that's not very intuitive ... not to mention not implemented yet.
 Thoughts ?
 I've been needing bi-directional JSON support to allow for the creation of
 complex JSON data structures.

 So, my thought is I have a need, but not a solution. :-)



 Br's,
 Marius
 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-04 Thread marius d.

:) .. ok ... let me noodle for while on this and I'll get back with
more details ... perhaps a POC

On Mar 4, 7:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
 On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote:

  Hi,

  I was thinking that it might be useful to be able to obtain a JSON
  representation of a Record and also from a JSON construct to create a
  Record.

  Record defines now:

  def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] = Nil

  but that's not very intuitive ... not to mention not implemented yet.

  Thoughts ?

 I've been needing bi-directional JSON support to allow for the creation of
 complex JSON data structures.

 So, my thought is I have a need, but not a solution. :-)



  Br's,
  Marius

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-04 Thread Timothy Perrett

Interesting thread. Whats going on with Record at the moment? Now 1.0
is out, will attention shift back to making record the primary
persistence mech in lift?

(sorry for the thread hi-jack)

Cheers, Tim

On Mar 4, 5:20 pm, marius d. marius.dan...@gmail.com wrote:
 :) .. ok ... let me noodle for while on this and I'll get back with
 more details ... perhaps a POC

 On Mar 4, 7:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote:

  On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com wrote:

   Hi,

   I was thinking that it might be useful to be able to obtain a JSON
   representation of a Record and also from a JSON construct to create a
   Record.

   Record defines now:

   def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] = Nil

   but that's not very intuitive ... not to mention not implemented yet.

   Thoughts ?

  I've been needing bi-directional JSON support to allow for the creation of
  complex JSON data structures.

  So, my thought is I have a need, but not a solution. :-)

   Br's,
   Marius

  --
  Lift, the simply functional web frameworkhttp://liftweb.net
  Beginning Scalahttp://www.apress.com/book/view/1430219890
  Follow me:http://twitter.com/dpp
  Git some:http://github.com/dpp
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Record and JSON

2009-03-04 Thread David Pollak
On Wed, Mar 4, 2009 at 9:40 AM, Timothy Perrett timo...@getintheloop.euwrote:


 Interesting thread. Whats going on with Record at the moment? Now 1.0
 is out, will attention shift back to making record the primary
 persistence mech in lift?

 (sorry for the thread hi-jack)


We'll chat about that on the call a week from Thursday.

If anyone in the community has requests for Lift 1.1, please speak up now
(I'm thinking August/September release).




 Cheers, Tim

 On Mar 4, 5:20 pm, marius d. marius.dan...@gmail.com wrote:
  :) .. ok ... let me noodle for while on this and I'll get back with
  more details ... perhaps a POC
 
  On Mar 4, 7:11 pm, David Pollak feeder.of.the.be...@gmail.com wrote:
 
   On Wed, Mar 4, 2009 at 9:08 AM, Marius marius.dan...@gmail.com
 wrote:
 
Hi,
 
I was thinking that it might be useful to be able to obtain a JSON
representation of a Record and also from a JSON construct to create a
Record.
 
Record defines now:
 
def suplementalJs(ob: Box[KeyObfuscator]): List[(String, JsExp)] =
 Nil
 
but that's not very intuitive ... not to mention not implemented yet.
 
Thoughts ?
 
   I've been needing bi-directional JSON support to allow for the creation
 of
   complex JSON data structures.
 
   So, my thought is I have a need, but not a solution. :-)
 
Br's,
Marius
 
   --
   Lift, the simply functional web frameworkhttp://liftweb.net
   Beginning Scalahttp://www.apress.com/book/view/1430219890
   Follow me:http://twitter.com/dpp
   Git some:http://github.com/dpp
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---