json_query allows you to query JSON flat files with PHP in a limited but SQL ORM like way.