purescript/purescript-foreign — pull request #6 by andreypopp (2014-07-26 12:45:15+00:00)
Title: Add keys :: String -> ForeignParser [String]

This allows reading keys of an object by key:

data Project = Project [String]

instance readForeignProject :: ReadForeign Project where
read = do
dependencies <- keys "dependencies"
return $ Project dependencies

parseJSON "{\\"dependencies\\": {\\"purescript-react\\": \\"*\\"}}"
:: Either String Project